How to create a virtualenv with a python seaman other than the ones installed?

Asked

Viewed 1,104 times

1

I am using virtualenv to install some packages of my projects so that they do not conflict, but I need to use a version of python that is not installed on the system, as I use linux the same already comes with 2.7 and 3.5 installed, but I need to use 3.4.0, but did not want to install a new version of python on the system, as I could create a virtualenv with a specific python version ?

2 answers

1


Take a look at the design pyenv with it you can easily install several different versions of python without affecting the versions already installed on S.O.

After installing pyenv, just vc install the python version you want (e. g.):

$ pyenv install 3.4.2

With the python version installed, you simply create the virtualenv pointing to the desired python version (e. g.)

$ virtualenv -p ~/.pyenv/versions/3.4.2/bin/python venv
  • I’m not able to install pyenv, would be able to install it by Pip ?

  • @Arcashaid gives a look at https://github.com/yyuu/pyenv-installer there are instructions on how to install

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.