I am trying to update the python version in my already existing virtual environment. I installed python using following steps
wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz tar xfz Python-2.7.11.tgz cd Python-2.7.11/ ./configure --prefix /usr/local/lib/python2.7.11 --enable-ipv6 make sudo make install I checked the version as well and its coming correctly
/usr/local/lib/python2.7.11/bin/python -V Python 2.7.11 I have an existing virtualenv named test and I want to use python2.7.11 in this environment. It tried using
workon test --python /usr/local/lib/python2.7.11/bin/python But the version of python is shown as the old one only
python -V Python 2.7.6 If I create a new environment, it works fine
mkvirtualenv test2 -p /usr/local/lib/python2.7.11/bin/python python -V Python 2.7.11 I tried finding the solution but couldn't figure out how to modify python version in the existing virtual environment. Any help in figuring out the solution will be appreciated.
Thanks