Configuring Python Environment With Virtualenvwrapper

Ugochukwu Mazi
Jun 7, 2018 · 3 min read
Image for post
Image for post
A comfortable wrapper around python virtualenv.
  1. Wrappers for creating, copying and deleting your virtual environments.
  2. Wrappers for navigating to and configuring projects for virtual environments.
cd ~
mkdir .virtualenvs
pip install virtualenv
which virtualenv
pip install virtualenvwrapper
vim .bash_profile
# Press shift+I to add the next two lines to your .bash_profile
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/
mkvirtualenv createdenv
mkvirtualenv -a $(pwd) createdenv
mkvirtualenv -a $(pwd) python=python3 createdenv
setvirtualenvproject ~/.virtualenvs/your-venv/ ~/path/to/project/rootdirectory
workon createdenv
rmvirtualenv createdenv
cpvirtualenv createdenv copiedenv

The Andela Way

A pool of thoughts from the brilliant people at Andela

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store