I am using Ubuntu 14.04 with Python 2.7.6. I have installed matplotlib
for Python 2. Now, I just installed Python 3.4.2 using pyenv install 3.4.2
. I then ran pip install matplotlib
to install matplotlib
for Python 3. I later discovered the package python3-matplotlib
for Ubuntu 14.04. I wonder: should I have used sudo apt-get install python3-matplotlib
instead? What is the preferred way of installing matplotlib
for Python 3 side-by- side with the Python 2 matplotlib
?
I dont have Ubuntu system right now with me. but still I can help you I think.
open your terminal and type as
If you find it like its available then you can install it from
that is the most preferred way.
Now how to use matplotlib with python 3. I have posted a question also in here about how to use python2 and python3 side by side.
Simple , use
python3 <filename.py>
while executing your program with python3-matplotliband similarly if you use python2 then it will load python 2.
hope that helps.
It is a problem with the development files of libgeos. I have the same problem and it was resolved by installing those libraries. Hope it helps.