Skip to content

Instantly share code, notes, and snippets.

@anujonthemove
Last active January 16, 2023 01:22
Show Gist options
  • Save anujonthemove/ffc202258c4beb84f4ddcc56f98bea3e to your computer and use it in GitHub Desktop.
Save anujonthemove/ffc202258c4beb84f4ddcc56f98bea3e to your computer and use it in GitHub Desktop.
Steps to setup Python 3 virtual environment and virtual environment wrapper.
# Commands to install virtual environments
# With this setup, all your virtual environments will be placed
# at one place inside .virtualenvs folder under home directory in Linux
sudo apt update
sudo pip install virtualenv virtualenvwrapper
# open .bashrc file and copy paste the following lines below:
# virtualenv and virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment