This commit is contained in:
Koushik Dutta
2023-06-08 09:22:54 -07:00
parent a31d6482af
commit 96ea3f3b27
5 changed files with 10 additions and 10 deletions

View File

@@ -611,12 +611,13 @@ class PluginRemote:
pipArgs = [
sys.executable,
'-m', 'pip', 'install', '-r', requirementstxt,
# preevent uninstalling system packages
'--ignore-installed',
'--prefix', python_prefix
]
if pythonVersion:
print('Specific Python verison requested. Forcing reinstall.')
# prevent uninstalling system packages.
pipArgs.append('--ignore-installed')
# force reinstall even if it exists in system packages.
pipArgs.append('--force-reinstall')
p = subprocess.Popen(pipArgs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)