P
P
Phantomrus2017-08-28 18:13:17
Python
Phantomrus, 2017-08-28 18:13:17

How to force packages to be installed in the correct version of Python?

Ubuntu. Trying to install numpy and matplotlib. I would like to have them in python3.6. At the same time, they are put in 2.7 and, of course, when you try again, a message pops up that it is already installed in 2.7.

>>sudo pip install matplotlib
Requirement already satisfied: matplotlib in /usr/lib/python2.7/dist-packages

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2017-08-28
@Phantomrus

>>sudo pip3 install matplotlib
and specifically for matplotlib, numpy and other heavy libraries with a large binary inside it is better
sudo apt-get install python3-matplotlib

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question