Last active
May 18, 2016 17:02
-
-
Save prateekbhatt/8399287 to your computer and use it in GitHub Desktop.
Install and run virtualenv with virtualenvwrapper on Ubuntu:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the following command: | |
sudo apt-get install python-setuptools python-dev build-essential | |
# Install pip: | |
sudo apt-get install python-pip | |
# Install virtualenv: | |
pip install virtualenv | |
# Install virtualenvwrapper: | |
pip install virtualenvwrapper | |
# Open ~/.bashrc and add the following two lines: | |
export WORKON_HOME=~/Envs | |
source /usr/local/bin/virtualenvwrapper.sh | |
# Save the bashrc file and run the following on your terminal: | |
source ~/.bashrc | |
# Now, you are ready to start using virtualenv: | |
# ---------------------------------------------- | |
# Create a virtual environment called "new_virtual_env" by using the following command: | |
mkvirtualenv new_virtual_env | |
# Activate your new virtual environment by using: | |
workon new_virtual_env | |
# When your work is done, deactivate the virtual environment you are in by using: | |
deactivate new_virtual_env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment