运行`pip install`的Ubuntu给出错误'无法构建以下必需的软件包:* freetype'

雅典娜智慧

执行时pip install -r requirements.txt,在安装阶段出现以下错误matplotlib

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [not found. pip may install it below.]
              dateutil: yes [dateutil was not found. It is required for date
                        axis support. pip/easy_install may attempt to
                        install it after matplotlib.]
               tornado: yes [tornado was not found. It is required for the
                        WebAgg backend. pip/easy_install may attempt to
                        install it after matplotlib.]
             pyparsing: yes [pyparsing was not found. It is required for
                        mathtext support. pip/easy_install may attempt to
                        install it after matplotlib.]
                 pycxx: yes [Couldn't import.  Using local copy.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [pkg-config information for 'freetype2' could
                        not be found.]

...

The following required packages can not be built:

                    * freetype

还不应该pip install -r requirements.txt安装freetype吗?freetype应该如何在Ubuntu 12.04中安装以便与它一起使用matplotlib

詹姆斯·米尔斯

pip将不会安装系统级的依赖性。这意味着pip将不会安装RPM(基于Redhat的系统)或DEB(基于Debian的系统)。

要安装系统依赖项,您将需要根据系统使用以下方法之一。

Ubuntu / Debian:

apt-get install libfreetype6-dev

要在基于Ubuntu / Debian的系统上搜索软件包:

apt-cache search <string>

例如:

apt-cache search freetype | grep dev

Redhat / CentOS / Fedora:

yum -y install freetype-devel

要在基于Redhat / CentOS / Fedora的系统上搜索软件包:

yum search <string>

例如:

yum search freetype | grep devel

Mac OS X的:通过自制

brew install freetype

在基于Mac OS X的系统上搜索软件包:

brew search <string>

例如:

brew search freetype

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

`Sudo pip install matplotlib`无法找到freetype标头。[OS X小牛/ 10.9]

来自分类Dev

“ pip3 install pipenv”给出错误:错误:无法卸载'distlib'

来自分类Dev

无法使用pip安装软件包(ubuntu 15.10)

来自分类Dev

给出的示例无法运行golang移动软件包

来自分类Dev

错误:无法解析以下软件包名称:在Julia中安装软件包时出错

来自分类Dev

在amd64上构建mips软件包:exec格式错误chroot:无法运行命令'mount'

来自分类Dev

在Rails中运行rake任务的Ubuntu 12.04给出错误:无法加载此类文件-Nokogiri

来自分类Dev

apt-get给出错误:无法找到所有软件包的软件包<软件包名称>

来自分类Dev

升级freetype想要删除其他软件包

来自分类Dev

我无法安装具有freetype支持的php [Ubuntu]

来自分类Dev

无法通过pip install -I降级Python软件包的版本

来自分类Dev

pip install re2给出错误

来自分类Dev

pip install opencv-python在Raspbian上给出错误

来自分类Dev

仅在iOS上构建时,Swift软件包中的Import Logger会给出错误

来自分类Dev

在Ubuntu 16.04上安装python3-pip时出现“无法安装某些软件包”错误

来自分类Dev

pip在ubuntu 14.04上安装石墨给出错误

来自分类Dev

导入错误:在使用 pip 版本 18.0、ubuntu 18.04 运行 pip 时无法导入名称 main

来自分类Dev

无法使用pip安装软件包

来自分类Dev

无法使用 pip 安装软件包

来自分类Dev

使用pip安装软件包时出错

来自分类Dev

完整更新pip软件包时出错

来自分类Dev

使用PIP安装python软件包时出错

来自分类Dev

使用pip安装Python软件包时出错:

来自分类Dev

使用Pip安装Python软件包时出错

来自分类常见问题

pip install pygraphviz:找不到软件包“ libcgraph”

来自分类Dev

Pip / Easy_install不安装所需的软件包

来自分类Dev

pip已安装,但在安装任何软件包时抛出错误

来自分类Dev

pip已安装,但在安装任何软件包时抛出错误

来自分类Dev

Haskell软件包构建错误

Related 相关文章

  1. 1

    `Sudo pip install matplotlib`无法找到freetype标头。[OS X小牛/ 10.9]

  2. 2

    “ pip3 install pipenv”给出错误:错误:无法卸载'distlib'

  3. 3

    无法使用pip安装软件包(ubuntu 15.10)

  4. 4

    给出的示例无法运行golang移动软件包

  5. 5

    错误:无法解析以下软件包名称:在Julia中安装软件包时出错

  6. 6

    在amd64上构建mips软件包:exec格式错误chroot:无法运行命令'mount'

  7. 7

    在Rails中运行rake任务的Ubuntu 12.04给出错误:无法加载此类文件-Nokogiri

  8. 8

    apt-get给出错误:无法找到所有软件包的软件包<软件包名称>

  9. 9

    升级freetype想要删除其他软件包

  10. 10

    我无法安装具有freetype支持的php [Ubuntu]

  11. 11

    无法通过pip install -I降级Python软件包的版本

  12. 12

    pip install re2给出错误

  13. 13

    pip install opencv-python在Raspbian上给出错误

  14. 14

    仅在iOS上构建时,Swift软件包中的Import Logger会给出错误

  15. 15

    在Ubuntu 16.04上安装python3-pip时出现“无法安装某些软件包”错误

  16. 16

    pip在ubuntu 14.04上安装石墨给出错误

  17. 17

    导入错误:在使用 pip 版本 18.0、ubuntu 18.04 运行 pip 时无法导入名称 main

  18. 18

    无法使用pip安装软件包

  19. 19

    无法使用 pip 安装软件包

  20. 20

    使用pip安装软件包时出错

  21. 21

    完整更新pip软件包时出错

  22. 22

    使用PIP安装python软件包时出错

  23. 23

    使用pip安装Python软件包时出错:

  24. 24

    使用Pip安装Python软件包时出错

  25. 25

    pip install pygraphviz:找不到软件包“ libcgraph”

  26. 26

    Pip / Easy_install不安装所需的软件包

  27. 27

    pip已安装,但在安装任何软件包时抛出错误

  28. 28

    pip已安装,但在安装任何软件包时抛出错误

  29. 29

    Haskell软件包构建错误

热门标签

归档