Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot run virtualenvwrapper on MacOs

I've tried to run virtualenvwrapper on mac (high sierra 10.13.4) but got this error:

-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory

I have installed with pip following the docs but nothing seems to work :/

And the curious thing is that the file virtualenvwrapper.sh exists in the mentioned directory:

lem4fia@MBP-de-Bruno ~ $ ls /usr/local/bin

enter image description here

I have trid to uninstall and re-install virtualenvwrapper but the same issue still happens.

Anyone got a solution?

like image 250
bruno Avatar asked Sep 23 '18 18:09

bruno


People also ask

Where is my virtualenvwrapper?

Location of Environments The variable WORKON_HOME tells virtualenvwrapper where to place your virtual environments. The default is $HOME/. virtualenvs . If the directory does not exist when virtualenvwrapper is loaded, it will be created automatically.


1 Answers

Ok i've fixed this issue by doing this:

pip uninstall virtualenvwrapper

the uninstall will ask if i want to proceed, but the first line shows the correct path to virtualenvwrapper.sh since the location changes from OS to OS and version to version, i've copied the path and answered no to keep virtualenvwrapper installed, and then pasted the correct path to .bash_profile.

After this i've got an error saying that virtualenvwrapper could not find the virtualenv, but fixed it by uninstalling and installing again the virtualenv with pip.

like image 133
bruno Avatar answered Sep 24 '22 01:09

bruno