简体   繁体   中英

cannot import matplotlib.pyplot

I have installed the matplotlib in python,and when I import matplotlib ,it works well.But when I import matplotlib.pyplot as plt ,the command line prompt me that an importerror occurred.

ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/nju/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/_path.so)

How can I solve the problem? Thanks very much

sudo apt install libgl1-mesa-glx

Above command is from the link below.

https://github.com/ContinuumIO/docker-images/issues/49

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM