Skip to content
Advertisement

Error with pointing to correct python version: virtualenvwrapper.sh

I get this error when I boot up terminal:

JavaScript

I need to “point” my virtual environment to the version of python I’m using.

How can I do this?

Advertisement

Answer

I had the same exact issue and updating my path didn’t help anything, nor did setting VIRTUALENVWRAPPER_PYTHON and VIRTUALENVWRAPPER_VIRTUALENV. This is because I was seeing this strange behavior when running my version of python:

JavaScript

I was able to fix everything by uninstalling python with brew, reinstalling python with brew, and forcing it to overwrite existing symlinks in /usr/local/bin.

JavaScript

Hopefully you were able to get past this issue when you encountered it six months ago. I wanted to post my solution in case others run in to the same issue and cannot solve it by setting their paths and env variables.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement