Z
Z
zkweb2015-08-03 16:54:59
Django
zkweb, 2015-08-03 16:54:59

How to install virtualenv?

Still new to Python. There are two versions of Python 2.6, Python 2.7.
Through 2.6 virtualenv the environment is normally installed. Through 2.7 there is no (I think because virtualenv is not installed specifically for version 2.7) such an error: importerror no module named _weakrefset Please
tell me how to install virtualenv for version 2.7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Savchuk, 2015-08-03
@MrLinch

If you need to work with multiple versions of Python , I highly recommend pyenv .
If you are under *nix, then it is very simple to install:
But before that, it is desirable to install some dependencies that are necessary for Python compilations.

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm

Next, compile the version you need:
Next, you can create the appropriate virtual environment for this version:
pyenv virtualenv 3.4.2 <name_of_venv>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question