python install module from script
import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
python install module from script
import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
installing modules in python
#Using the command prompt
#To check if moduale is already installed and version:
!conda list SomeModule #in your Jupyter notebook if using Anaconda.
conda list SomeModule #in the Anaconda prompt.
#To download and install modules and packages:
conda install SomeModule=0.22 #in the Anaconda prompt if using Anaconda
py -m pip install "SomeModule==1.4.2" #in command prompt if using pip
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us