Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 893
drbunsen Avatar asked Nov 05 '11 20:11

drbunsen


1 Answers

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
like image 137
wilbbe01 Avatar answered Oct 06 '22 01:10

wilbbe01