简体   繁体   中英

Error when Installing matplotlib using pip

I know that there have already been questions pertaining to this and most of them were resolved by installing libfreetype6-dev and libpng-dev . I have installed both of those libraries using apt-get, but I am still coming up with an error when trying to use

pip install matplotlib

The error I get is:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

It seems you need to install g++

sudo apt-get install g++
aptitude install g++

万一遇到更多问题,您可能需要安装Anaconda,这是一站式商店,其中包含许多管理依赖项并包括mathplotlib的python库。

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