Steps to upgrade your virtualenvs when you upgrade portable python (and perhaps any other python).
- Add this portable python to your path variable. I am using msys to give me a linux like environment so I do a:
PYTHON_HOME="/PortableApps/PortablePython2.7.6.1/App" export PATH="$PYTHON_HOME:$PYTHON_HOME/Scripts:$PATH"
- I like pip in the environment so get pip:
- easy_install pip
- Get virtualenv for this portable python:
- pip install virtualenv
- Now redo the virtual env with this virtualenv in the new python. Note "--system-site-packages" is optional and based on what you used previously to build this environment.
- virtualenv --system-site-packages <path to existing virtual environment>
No comments:
Post a Comment