N
N
Nikolay Baranenko2020-02-04 12:52:52
Python
Nikolay Baranenko, 2020-02-04 12:52:52

Is it possible and how to install env with python 3.6 through virtualenv with python 2.7 for example?

Hello.

Given:

$ python -V
Python 2.7.5
$ pip -V
pip 20.0.2 from /home/user1/.local/lib/python2.7/site-packages/pip (python 2.7)


It is necessary to put env c python other than 2.7 for example python 3.6

Is this possible and how?

ps
before that, it was possible to install env with python versions only if python was installed...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dr. Bacon, 2020-02-04
@drno-reg

Only if you set the required version of python. Different versions normally live in the system, the main thing is not to touch the "system" version.

V
Vladimir Kuts, 2020-02-04
@fox_12

virtualenv -p <путь к установленному бинарнику python 3.6> venv

V
Vadim Shatalov, 2020-02-04
@netpastor

https://github.com/pyenv/pyenv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question