I have created a virtual enviroment using virtualenv
command with a standard procedure. Now, when I activate it or deactivate, the output of which pip
or which python
gives me same output /usr/local/bin/pip
. However there is copies of python and pip commands in my vitrual enviroment directory - I have found them there. What might be the problem?
Did you move the virtual environment folder to a different name? The original path to the virtual environment is written into the generated activate script so if you move the environment activate will set your path to the old path of the virtual environment.
To fix this run virtualenv --relocatable $YOUR_VIRTUALENV_PATH
then modify the VIRTUAL_ENV
variable in the activate script to point to your new location.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With