Skip to content

Instantly share code, notes, and snippets.

@daluu
Last active November 14, 2019 16:59
Show Gist options
  • Save daluu/6b44710d451bd4c96a4eee8a1c5ab8d7 to your computer and use it in GitHub Desktop.
Save daluu/6b44710d451bd4c96a4eee8a1c5ab8d7 to your computer and use it in GitHub Desktop.
python env notes
various python related commands to run relating to envs
apt-get -y update && apt-get -y --force-yes --fix-missing install build-essential python-dev
pip install virtualenv
virtualenv --system-site-packages -p python3 venv3
source venv3/bin/activate
. venv3/bin/activate
sed -i '1 s/^.*$/#!\/usr\/bin\/env python3/' venv3/bin/pip
pip install -U -q pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment