O
O
Oleg Petrov2018-11-10 12:05:11
Python
Oleg Petrov, 2018-11-10 12:05:11

How to trigger install in pip From Python 2?

I have Python3.7 and Python 2.7.
I wrote the paths to Python 2.7 in system--advenced system --enviroments variables--system variables--path.
In cmd, the python command calls Python 2.7, but when installing pip install, all scripts and libraries still try put in Python 3.7/scripts
What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-11-10
@dimonchik2013

use virtualenv if you don't want problems on linux

R
Radjah, 2018-11-10
@Radjah

Write pip2 instead of pip.
Something like this in Debian 9.

$ pip
pip     pip2    pip2.7  pip3    pip3.4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question