$ echo $PATH
/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
So /usr/local/bin is in my path.
when I do `which python3'
/usr/local/bin/python3
When I then try to create a virtualenv
mkvirtualenv py3000 --python=python3
The executable /Users/misdirectedpuffin/python3 (from --python=/Users/misdirectedpuffin/python3) does not exist
Virtualenv works when using the default python ie mkvirtualenv testenv' and when doing 'mkvirtualenv py3000 --python=/usr/local/bin/python3
It seems to be looking in $HOME for python3. How can I correct this?
** edit **
I can also set export python3=/usr/local/bin/python3
in bash_profile
, then call $python3
with --python=$python3
, but what I really want is --python=python3
without the dollar sign.
--python=/usr/local/bin/python3
? – Subtractivevirtualenv py3000 --python=/usr/local/bin/python3
. Use the commandvirtualenv
instead ofmkvirtualenv
. – Nighthawkvirtualenvwrapper is propably not tied to the correct python. If you'd
pip-3 install virtualenvwrapper` and then use/usr/local/bin/mkvirtualenv
, there shouldn't be a need for the--python
option. – Subtractive