diff --git a/packages/pip.py b/packages/pip.py index dad2025..b29cc0f 100644 --- a/packages/pip.py +++ b/packages/pip.py @@ -5,17 +5,18 @@ import os, sys def pip(command: list): - print(command, len(command)) + #print(command, len(command)) if len(command) != 1: print("comand requires [ package_name ] [ args (optional) ] ") return package = command[0] try: - from pip._internal import main as pipmain - pipmain(['install', {package}]) - except ImportError: - os.system(f"pip install {package}") + print("Running pip from shell") + os.system(f"python -m pip install {package}") + except Exception as e: + print(e) + except: print("cannot download")