esra-justBI
7/29/2019 - 7:20 AM

Python - PIP

pip --version 
pip install --user pipenv
#add to path variable  : copy the path
#edit the system environment variables -> evironment variables -> path: edit: new -> paste the path
#restart terminal
pipenv --version
#check if it's working.

# create virtual environments
pipenv --three
pipenv install numpy #no version specified, so you can use what you want.
pipenv install requests==2.18.1 #version specified.

#how to use the versions? Use the shell.
pipenv shell #opens shell
python 3 #opens up python 3 interpreter
exit() #exists pythong
exit #out of shell

#This is very useful because the programs are executed in virtual environments. You don't have to change any files/download/change versions. 
#You can just switch to different project files, where different versions are specified.
#Every developer can automatically have the same environments.