使用“pip”更新“matplotlib”(1.4.1,继Yosemite更新之后)失败

2024-04-29 04:14:31 发布

您现在位置:Python中文网/ 问答频道 /正文

正在尝试将matplotlib更新为1.4.1(从1.4.0)fails with

[...]
OPTIONAL LATEX DEPENDENCIES

                dvipng: yes [version 1.14]

           ghostscript: no

                 latex: yes [version 3.14159265]

               pdftops: no



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

                        * The following required packages can not be built:

                        * freetype

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/matplotlib
Storing debug log for failure in /Users/Rax/Library/Logs/pip.log

和日志详细信息

^{pr2}$

这是与我最近对Yosemite(来自Mavericks)的更新有关吗?还是与似乎已经对matplotlib的{}依赖关系的recent changes有关,还是两者兼而有之?如果是这样,我能做些什么来解决它?在


更新:与1.4.2版本相同。在


Tags: pipnoinlogmatplotlibversionwithdependencies
1条回答
网友
1楼 · 发布于 2024-04-29 04:14:31

我要在OSX 10.10上安装matplotlib,读取https://github.com/matplotlib/matplotlib/pull/3713
这不是pip用户的解决方案;只是在mac上安装matplotlib等待修复的方法。在

我下载了matplotlib 1.4.2的源代码,
更改了960行设置文本.py如https://github.com/matplotlib/matplotlib/pull/3713/files中所述:

'freetype2', 'ft2build.h',

贝卡姆斯

^{pr2}$

然后编译并安装:

python setup.py build
python setup.py install

相关问题 更多 >