Answers for "run package with different python"

2

how to install packages inside thepython script

import sys
import subprocess

# implement pip as a subprocess:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 
'<packagename>'])
Posted by: Guest on May-05-2020
0

pip upgrade python

pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
Posted by: Guest on October-06-2020

Code answers related to "run package with different python"

Python Answers by Framework

Browse Popular Code Answers by Language