When install ”matplotlib” with ”pip”, if you get the following error, it means the “freetype” and “png” libraries needed by matplotlib are not installed:

============================================================================

                        * The following required packages can not be built:

                        * freetype, png

So install them:

apt-cache search freetype | grep dev
apt-cache search libpng | grep dev
sudo apt-get install libfreetype6-dev libpng12-dev
pip install matplotlib

Done.
时间: 2024-10-10 14:19:11

When install ”matplotlib” with ”pip”, if you get the following error, it means the “freetype” and “png” libraries needed by matplotlib are not installed:的相关文章

python pip使用报错:Fatal error in launcher: Unable to create process using '"'

系统win7 解决方法: python3: python3 -m pip install --upgrade pip python2: python2 -m pip install --upgrade pip 注意:python2, python3共存时,将python安装目录下的python.exe改成对应的python2.exe,python3.exe python pip使用报错:Fatal error in launcher: Unable to create process using

56-python pip使用报错:Fatal error in launcher: Unable to create process using '"'

在一个系统中共存Python2.python3的时候,pip.pip2.pip3使用的时候会报错: c:\Python35\Scripts>pip3Fatal error in launcher: Unable to create process using '"' 解决方法: python3: python3 -m pip install --upgrade pip python2: python2 -m pip install --upgrade pip 注意:python2, pyt

Ubuntu-Python2.7安装 scipy,numpy,matplotlib 和pip

一. scipy,numpy,matplotlib sudo apt-get install python-scipy sudo apt-get install python-numpy sudo apt-get install python-matplotlib python import scipy import numpy import pylab scipy.test() numpy.test() pylab.test() 二.pip 1.先说一下什么是pippip 是“A tool f

installing the matplotlib via pip in the enviroment dos

目录 一.The installing of matplotlib 三.Histogram The result of first section: The result of the second section: 一.The installing of matplotlib matplotlib is matrix plotting library. pip installing matlotlib 二.The Result Of Installing The Unknown Word Th

windows下使用pip安装模块发生“failed with error code 1”的解决方法

win不愧是最烂的开发平台,在安装第三方模块时经常出现些幺蛾子. 今天在window中使用python3自带的pip安装scrapy时,出错,错误代码如下: Command "f:\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\WONDER~1\\AppData\\Local\\Temp\\pip-build-90gvzc6m\\Twisted\\setup.py';

python中使用pip安装报错:Fatal error in launcher... 解决方法

python安装了2和3版本在 cmd 中用pip报的错误为:Fatal error in launcher:Unable to create process using 这是因为你安装了python3和python2在你的windows下,并且在环境变量中分别配置了pip,可是并没有区分pip3还是pip2所以你可以用区分Python3和Python2的pip:比如pip3或者pip3.6来安装python3的安装包:你可以用pip2或者pip2.7来安装python2的安装包 安装pytho

Python中使用pip安装一些库时出现ERROR

ERROR: No matching distribution found for tensorflow的情况这可能是因为网络的问题,这时我们使用国内的镜像源来加速输入命令:python -m pip install requests(如果你安装的是别的库,请输入别的库名) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com这时就安装成功了. 原文地址:https://www.cnblogs.com/zhaoyang1

pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

在win10上pip安装ujson报错 之前一直用的是mac本,但由于疫情问题,最近不得不用win10系统来进行python开发,在使用pip安装依赖包ujson时,遇到了问题,如下: (custom_itsm) D:\DEVELOP\items\hn_test>pip install ujson DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python

Windows下pip安装包报错:error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

在Windows7x64下使用pip安装包的时候提示报错: error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27 原因:windows下使用pip安装包的时候需要机器装有vs2008,VS2012还不行,如果不想装VS2008的话,可以安装一个Micorsoft Visual C++ Compiler for Python 2