Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: virtualenvwrapper could not find virtualenv in your path

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.

like image 997
vmonteco Avatar asked Jul 07 '15 16:07

vmonteco


People also ask

How do I get rid of Virtualenvwrapper?

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.

Where is Virtualenvwrapper installed?

That installation installs virtualenvwrapper in the /usr/local/bin directory.


1 Answers

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.

like image 64
Sudheer K Avatar answered Sep 18 '22 11:09

Sudheer K