Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virtualenv can't find python2

I'm on a mac, which comes with python 2.7 installed, so I should have the required version.

At least, I believe that's the problem. I'm getting an error when trying to run make install for a project, and getting the following error:

The executable python2 (from --python=python2) does not exist
make: *** [bin/python] Error 3
like image 208
bigblind Avatar asked Mar 16 '14 16:03

bigblind


Video Answer


2 Answers

virtualenv --python=python3 fibonacci_env

Point out which python

like image 101
Shinto Joseph Avatar answered Sep 28 '22 00:09

Shinto Joseph


Specify the full path to the Python interpreter (not sure if this is the right path - haven't used MacOs):

mkvirtualenv myenv --python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python

or smth like:

--python=$(which python)
like image 38
warvariuc Avatar answered Sep 28 '22 00:09

warvariuc