Renaming a virtualenv folder without breaking it

http://stackoverflow.com/questions/6628476/renaming-a-virtualenv-folder-without-breaking-it

If you want to fix this manually, that is the way:

  1. modify /tmp/project/env/bin/activate with yout favoriate editor like Vim, usually in Line 42

VIRTUAL_ENV=’/tmp/myproject/env’ => VIRTUAL_ENV=’/tmp/project/env’

2. modify /tmp/project/env/bin/pip in Line 1

#!/tmp/myproject/env/bin/python => #!/tmp/project/env/bin/python

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment