Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virtualenv ERROR: the executable in env/bin/python is not functioning

The Problem

I am having great difficulty getting virtualenv to work on my OSX machine. When I run virtualenv env I get the error:

New python executable in env/bin/python
ERROR: The executable env/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/tylerwendlandt/Documents/Courses/cmput_401' (should be '/Users/tylerwendlandt/Documents/Courses/cmput_401/env')
ERROR: virtualenv is not compatible with this system or executable

I tried looking around for solutions - but I can't seem to get it to work. I don't work with python very often, so this is mostly unfamiliar to me. I attempted to include the needed information, please let me know if more is needed. I appreciate any help - thank you.

Some info:

which python

/Users/tylerwendlandt/anaconda/envs/ualbertacro/bin/python

python --version

Python 3.4.3 :: Continuum Analytics, Inc.

which pip

/Users/tylerwendlandt/anaconda/envs/ualbertacro/bin/pip

pip --version

pip 7.1.2 from /Users/tylerwendlandt/anaconda/envs/ualbertacro/lib/python3.4/site-packages (python 3.4)

which virtualenv

/Users/tylerwendlandt/anaconda/envs/ualbertacro/bin/virtualenv

virtualenv --version

13.1.2

like image 725
wenincode Avatar asked Oct 19 '22 00:10

wenincode


1 Answers

update virtualenv version

pip install --upgrade virtualenv
like image 91
shuiyouren Avatar answered Oct 22 '22 10:10

shuiyouren