Last active
December 16, 2018 09:06
-
-
Save owen800q/7ef0fd259ae582913a8e8c9cabfed743 to your computer and use it in GitHub Desktop.
Common commands for Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note different python builds can have different modules, they do not share modules | |
Python 2.7 has it own pip and pipenv | |
Python 3.7 has it pip3 and pipenv | |
Upgrading pip3 and pipenv for python 3 | |
pip3 install --upgrade pip. | |
pip3 install --upgrade pipenv | |
### | |
sudo rm /usr/bin/python3 | |
sudo ln -s /usr/bin/python3.5 /usr/bin/python3 | |
Set python 3.5 as default python3, when running the command python3, it should point to python3.5 | |
Note, multiple python versions is allowed on Linux, if you install python 3.6 and 3.7 from source code, then the binary executable will be installed in "/usr/local/bin/python3.7" instead of "/usr/bin/python3.7" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment