Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

462
Views
python virtualenv and Mac OS Monterey upgrade

after the upgrade to Monterey virtualenvwrapper doesn't behave. I've tried uninstalling it and re-installing it, deleting the old workspaces.

when I launch the mkvirtualenv this happens:

Using base prefix '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7'
New python executable in /venvdir/venvname/bin/python3.7
Also creating executable in /venvdir/venvname/bin/python
ERROR: The executable /venvdir/venvname/bin/python3.7 is not functioning
ERROR: It thinks sys.prefix is '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7' (should be 'my-project-dir/')
ERROR: virtualenv is not compatible with this system or executable

whatever version of Python it's trying to use, from Cellar, is not working?

in my ~/.bash_profile there is:

export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/someworkspace
source /usr/local/bin/virtualenvwrapper.sh

why is the python version is taken from "Cellar" rather than from VIRTUALENVWRAPPER_PYTHON.

Another interesting this is that if I just run

python3 --version
Python 3.7.3

But I thought Monterey was using 3.8.9?

Does anyone know what has changed? Thanks T.

EDIT: small update, I've rewritten the question since I had another problem which was solved by restarting. The python version problem still remains.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I edited my file ~/.zprofile and changed the export:

export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7

restarted the terminal and I was able to create the virtualenvs again.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!