
import subprocess

def run_terminal_command(command):
    try:
        # Run the command and capture the output
        result = subprocess.run(command, shell=True, capture_output=True, text=True)

        # Print the command output
        print("Command Output:\n", result.stdout)
        if result.stderr:
            print("Error Output:\n", result.stderr)
    except Exception as e:
        print(f"An error occurred: {e}")

# Example: Running a simple 'uname -a' command to check system information
#command = "pip uninstall -y pycryptodome"
command = "pip install argon2-cffi==23.1.0"
run_terminal_command(command)
