how to install python code example

Example 1: how to update pip python

python -m pip install --upgrade pip

Example 2: update link python is python 3

$ python --version
Python 2.7.6
$ python3 --version
Python 3.4.3
$ alias python=python3
$ python --version
Python 3.4.3

Example 3: choco install python

choco install python --pre (For the latest prerelease)
choco install python --version=3.8.0 (For version 3.8.0, follow that syntax to install any version)

Example 4: pip install python

## To install Pip, first download get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
  
## Then run the following command in the command line
## in the folder where the file has been saved.
python get-pip.py

Example 5: how to install python libraries

python -m pip install SomePackage

Example 6: how to install modules in python

# In cmd.exe type:     
pip install #module_name