Skip to content

Instantly share code, notes, and snippets.

@owen800q
Last active December 16, 2018 09:06
Show Gist options
  • Save owen800q/7ef0fd259ae582913a8e8c9cabfed743 to your computer and use it in GitHub Desktop.
Save owen800q/7ef0fd259ae582913a8e8c9cabfed743 to your computer and use it in GitHub Desktop.
Common commands for Python
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