I'm trying to create a virtualenv with virtualenvwrapper
, but when I use mkvirtualenv
I get the following :
ERROR: virtualenvwrapper could not find virtualenv in your path
I assumed it was a PYTHONPATH problem. But if I do a pip show virtualenv
I get the following :
--- Metadata-Version: 2.0 Name: virtualenv Version: 13.1.0 Summary: Virtual Python Environment builder Home-page: https://virtualenv.pypa.io/ Author: Jannis Leidel, Carl Meyer and Brian Rosner Author-email: [email protected] License: MIT Location: /Volumes/Data/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/lib/python/site-packages Requires:
And here is my PYTHONPATH :
/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/bin:/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/bin:/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/lib/python/site-packages:/Volumes/Data/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/lib/python/site-packages:~/.brew/Cellar
It contains the directory containing virtualenv!
(i-e : /Volumes/Data/nfs/zfs-student-3/users/2013_paris/vmonteco/Library/Python/2.7/lib/python/site-packages )
My ~/.zshrc contains :
export WORKON_HOME=~/Envs export PROJECT_HOME=$HOME/Devel source $HOME"/Library/Python/2.7/bin/virtualenvwrapper.sh"
EDIT : virtualenvwrapper.sh is written in bash, perhaps should I check my PATH instead of my PYTHONPATH ?
So, what could the problem be? How could I fix it?
Thank you in advance for your help.
You can do that by doing pyenv virtualenv-delete myspecialenv or manual removal. Show activity on this post. if you are windows user, then it's in C:\Users\your_user_name\Envs. You can delete it from there.
That installation installs virtualenvwrapper in the /usr/local/bin directory.
Re-installling virtualenv fixed my problem.
I had the same issue.
$ mkvirtualenv mysite ERROR: virtualenvwrapper could not find virtualenv in your path
After a lot of time consuming efforts, I decided to re-install virtualenv.
sudo apt install virtualenv
This fixed my issues. I already had virtualenv installed. But I think it got broken or met with some errors.
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