Issue
I built a small app in python and everything was running smoothly. Afterwards, I decided to upgrade python to 2.7.5 with homebrew. When I went back to start a new project, I was no longer able to create the virtual environment. This is the ERROR I'm getting:
virtualenv --no-site-packages club_envNew python executable in club_env/bin/python
ERROR: The executable club_env/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/System/Library/Frameworks/Python.framework/Versions/2.7' (should be u'/Users/myusername/Code/python/club/club_env')
ERROR: virtualenv is not compatible with this system or executable
Could someone please explain
- What is happening here, so that I understand the problem, and
- How I can fix this, and
- If there was something I should have done differently from the beginning?
Solution
You need to reinstall `virtualenv
in the new Python 2.7.5
default environment and then you will be able to create new virtual environments again.
Answered By - Jonathan Answer Checked By - Willingham (WPSolving Volunteer)