Skip to content

Instantly share code, notes, and snippets.

@wuthmone
Last active February 9, 2018 10:02
Show Gist options
  • Save wuthmone/b31405afbf7d95e9fe4c35ff88cfd6f3 to your computer and use it in GitHub Desktop.
Save wuthmone/b31405afbf7d95e9fe4c35ff88cfd6f3 to your computer and use it in GitHub Desktop.
Python Environment setups for Ubuntu or other Linux OS
# Install python3 on Ubuntu
mkvirtualenv --python=/usr/bin/python3.6 ACE2
sudo apt-get install python3
# Install python-pip3 on Ubuntu
sudo apt-get install python3-pip
# Install the require library with pip3 ( requirements.txt must be in same directory )
pip3 install -r requirements.txt --no-index --find-links file:///tmp/packages
# Store the requires libary with freeze
pip freeze > requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment