Skip to content

Instantly share code, notes, and snippets.

@NimzyMaina
Last active December 7, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NimzyMaina/3632e538d2b9b353c53e5edf0b1455bf to your computer and use it in GitHub Desktop.
Save NimzyMaina/3632e538d2b9b353c53e5edf0b1455bf to your computer and use it in GitHub Desktop.
Creating a python virtual env with wrapper

Creating a Virtual ENV in python

create env

mkvirtualenv createdenv

set project dir

setvirtualenvproject ~/.virtualenvs/createdenv/ ~/path/to/project/rootdirectory

create & specify project dir

mkvirtualenv -a $(pwd) createdenv

set python version

mkvirtualenv -a $(pwd) python=python3 createdenv

work on a project

workon createdenv

deactivate env

deactivate

remove env

rmvirtualenv createdenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment