From 0837f6c5fd462a040788f2aaae31b282397ed10f Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:41:15 -0500 Subject: [PATCH] Fixed pip package --- packages/pip.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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")