---
# System prepended metadata

title: Ubuntu Installing Virtalenvwrapper

---

# Ubuntu Installing Virtalenvwrapper    

- Install pip 3:  ` sudo apt-get install python3-pip `
- Install  virtualenv: ` sudo pip3 install virtualenv `
- Create directory for virtalenvs in home: `mkdir ~/.virtualenvs`
- Install virtaulenvwrapper: ` sudo pip3 install virtualenvwrapper `

- set variables in `.bashrc` (change value according to your locations)
    ```
    # virtualenvwrapper
    export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
    export VIRTUALENV_PYTHON=/usr/bin/python3
    export WORKON_HOME=~/.virtualenvs
    source ~/.local/bin/virtualenvwrapper.sh # (in some cases it might be in /usr/local/bin)
    ```

### Quick Start

- Run `mkvirtualenv temp` to create a virtual env. named `temp`. A new environment, `temp` is created and activated.
- Run `workon temp` to activate `temp` virtual env
- Run `deactivate` to deactivate current virtual env that you are using