drbunsen
drbunsen

Reputation: 10689

Difficulty with using virtualenv and specific Python version?

I'm trying to understand how to create an isolated python environment using an alternative version of Python other than the default (in my case this is Python 2.7). virtualenv works on my system with Python 2.7, but I can't seem to create a virtual environment with a version of Python 3.

I tried to specify the Python version as outlined in this this post, like this:

$ virtualenv -p /usr/bin/python3.2

Can anyone explain how I can create a virtualenv with a specific version of Python? Thanks very much.

Upvotes: 5

Views: 9521

Answers (1)

wilbbe01
wilbbe01

Reputation: 1971

I believe you need to install python 3.2 to the system first. You're telling the virtualenvironment to use a version of python that doesn't exist anywhere so it cannot find it. This is the "does not exist"

Edit after more info was given in comment:

virtualenv -p /usr/local/bin/python3.2

Upvotes: 9

Related Questions