How to Install Python Packages using a Script - ActiveState
https://www.activestate.com/resources/quick-reads/how-to-install-python-packages-using-a-script/
WEBJan 8, 2020 · When it comes to automating the installation of Python packages, you can create a Python script that runs pip as a subprocess with just a few lines of code: import sys. import subprocess. # implement pip as a subprocess: subprocess.check_call([sys.executable, '-m', 'pip', 'install', ' <packagename> '])
DA: 60 PA: 61 MOZ Rank: 40