Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Last active November 3, 2022 09:35
Show Gist options
  • Save barseghyanartur/e56ee0c5211d95ee33b36e09cffe6834 to your computer and use it in GitHub Desktop.
Save barseghyanartur/e56ee0c5211d95ee33b36e09cffe6834 to your computer and use it in GitHub Desktop.
Install virtualenv wrapper on Linux (Ubuntu/Fedora)

Installation instructions

Install required Linux packages

On Ubuntu

sudo apt-get install python3-virtualenv
sudo apt-get install python3-setuptools

On Fedora

sudo dnf install python3-virtualenv
sudo dnf install python3-setuptools

Install required Python packages

sudo pip3 install virtualenv
sudo pip3 install virtualenvwrapper

Create required dirs

mkdir -p ~/.virtualenvs
mkdir -p ~/repos

Modify ~/.bashrc

In your ~/.bashrc put the following:

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/repos
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
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