2

I recently have started learning python and have run into an issue.

When I run python on my mac without virtualenv, the version number is Python 2.7.5. Unfortunately, when I go into my virtualenv, and run Python, the version number is Python 2.6.1.

I tried, creating another virtualenv using:

virtualenv -p /usr/bin/python2.7 newdev

but got: The executable /usr/bin/python2.7 (from --python=/usr/bin/python2.7) does not exist

2 Answers 2

4

You have to specify the executable, not the whole path. For example:

mkvirtualenv --python=python3 mynewenv
Sign up to request clarification or add additional context in comments.

Comments

2

virtualenv --python=python3 mynewenv

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.