Recently I installed Python 3.3 using the Mac OSX installer. Following which I installed pip-3.3 following the instructions of How to use pip with Python 3.x besides Python 2.x, the second answer. After which I ran the following command to install virtualenv
,
sudo pip-3.3 install virtualenv
Updated my PATH
variable as well as follows:
/Library/Frameworks/Python.framework/Versions/3.3/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/share/python:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin
PYTHONPATH
variable is as follows:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages:/Library/Frameworks/Python.framework/Versions/3.3/bin:/Library/Python/2.7/site-packages:/usr/local/lib/python2.7/site-packages:
However, when I run virtualenv -p /usr/local/bin/python3 py3
, I get the following Error message.
I observed that, on many posts and questions answered on StackOverflow as well, the usage is always -p /usr/bin/python3
however in my case there is no directory like python3
in /usr/bin/
. There's one in /usr/local/bin/
. Is this strange and incorrect?
Kindly help me out here. How should I go about it? And what am I doing wrong here?
Thanks,
Chintak