Forums

Flask virtualenv: python exec not found

The Django tutorial shows how to create a virtualenv. Attempting to replicate for Flask and Python3.4 isn't working.

$ source virtualenvwrapper.sh

succeeds

$ mkvirtualenv --python=python3.4 venv

fails, with the message The executable /home/me/python3.4 (from --python=/home/me/python3.4) does not exist

This problem was discussed in thread 1251. The PA answer was "You need to specify the full path to the python executable."

Any suggestions on what that might be?

mkvirtualenv --python=`which python3.4` venv

Thank you.

That command actually didn't work, but I was able to use the which to find the FQP and was able to use

mkvirtualenv --python=/usr/bin/python3.4 venv

and I'm now sitting in

(venv)

!!!!!

:)