A
A
Artyom Innokentiev2015-08-04 16:59:40
Python
Artyom Innokentiev, 2015-08-04 16:59:40

Pip installs packages for Python 2.7.6 by default - how to install packages for Python 3.4.3?

OS - Mac OS Yosemite 10.10.4.
There are two interpreters - Python 2.7.6 and Python 3.4.3.
I want to install packages in Python 3.4.3, but pip installs in Python 2.7.6, apparently it is the default.
What are the solutions? Virtualenv?
If you can, plz throw off the info on the resources)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lamazavr, 2015-08-04
@artinnok

pip3 or python3 -m pip

F
fuzz0, 2015-08-04
@fuzz0

https://docs.python.org/3/installing/

M
Maxim Barabanov, 2015-08-04
@reb00ter

In any case, it's better to shove everything into the virtualenv so that the projects do not get confused later. Through -p you can tell him which python to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question