pycharm 和SHELL下安装MATPLOTLIB均失败, 出现Command "python setup.py egg_info" failed with error code 1 的解决方案
2019-01-19 00:57
561 查看
本人在pycharm 和SHELL下安装MATPLOTLIB均失败, 出现Command “python setup.py egg_info” failed with error code 1 的解决方案。
花了好多方式解决, 试过:
python -m pip install --upgrade --force pip pip install setuptools==33.1.1
后仍然没解决。
进一步看出错信息后显示:
freetype: no [The C/C++ header for freetype2 (ft2build.h) could not be found. You may need to install the development package.] png: no [pkg-config information for ‘libpng’ could not be found.] * The following required packages can not be built: * freetype, png
说明缺少依赖的包freetype和libpng。
在SHELL下,采用如下方式:
-
安装libpng
使用如下命令:sudo apt-get install libpng-dev
-
安装freetype
cd ~/Downloads
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.6.5.tar.gz
tar -zxvf freetype-2.6.5.tar.gz
cd freetype-2.6.5/ ./congfigure
sudo make
sudo make install
最后运行
sudo pip3 install matplotlib
安装约15分钟后显示成功安装。
相关文章推荐
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- pip安装icu失败:Command "python setup.py egg_info" failed with error code 1 in
- matplotlib InstallationError: Command python setup.py egg_info failed with error code 1
- (未解决,只是提供一种思路)安装pyspider失败:Command "python setup.py egg_info"failed with error code 10 in.....
- python mysqlclient安装失败 Command "python setup.py egg_info" failed with error code 1
- python2.7 安装channels出现Command"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-y
- 安装 geopandas 时出现错误 Command "python setup.py egg_info" failed with error code 1
- Ubuntu16.04 pip安装出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-7
- 关于Command "python setup.py egg_info" failed with error code 1安装第三方库报的错(¥16)
- 解决安装ipython时Command "python setup.py egg_info" failed with error code 1 in /tmp
- 解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
- 安装第三方模板库发生错误:Command "python setup.py egg_info" failed with error code 1 in XXXXX