Skip to content

Instantly share code, notes, and snippets.

@brainsik
Created July 31, 2011 15:49
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 brainsik/1116901 to your computer and use it in GitHub Desktop.
Save brainsik/1116901 to your computer and use it in GitHub Desktop.
hack so mkvirtualenv uses a different interpreter
# create a temporary directory
mkdir tmp_python; cd tmp_python
# symlink "python" to the interpreter you want
ln -s `which python2.6` python
# have mkvirtualenv use the python symlink
PATH="$PWD:$PATH" mkvirtualenv py26party
# clean up
cd ..; rm -rf tmp_python
@brainsik
Copy link
Author

Don't do this. :-) Use mkvirtualenv -p.

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