I am using Ubuntu 14.04 LTS, 64-bit. I downloaded Python3.5.1 Gzipped tarball source from https://www.python.org/downloads/release/python-351/.
Then installed using
./configure
sudo make install
Then I upgrade pip by
sudo pip install --upgrade pip
it upgraded pip to 8.1.2, which is the latest version. Then installed matplotlib package using
sudo pip install --upgrade matplotlib
Now, when I import matplotlib into python, I get
Python 3.5.1 (default, Jun 9 2016, 14:37:08)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 29, in <module>
import matplotlib.colorbar
File "/usr/local/lib/python3.5/site-packages/matplotlib/colorbar.py", line 32, in <module>
import matplotlib.artist as martist
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 14, in <module>
from .transforms import (Bbox, IdentityTransform, TransformedBbox,
File "/usr/local/lib/python3.5/site-packages/matplotlib/transforms.py", line 39, in <module>
from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
Please advise on how to fix this?
/usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
packages.ubuntu.com/xenial/amd64/libpython3.5/filelist ... i.e. may not be found in /usr/local/[hidden-location] , unless you point to it. -