2014-10-19 59 views
2

尝试更新matplotlib到1.4.1(从1.4.0)fails with更新使用 '点子' matplotlib“(1.4.1,以下约塞米蒂更新)的失败

[...] 
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 

和日志信息

Exception information: 
Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 278, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "/Library/Python/2.7/site-packages/pip/req.py", line 1229, in prepare_files 
    req_to_install.run_egg_info() 
    File "/Library/Python/2.7/site-packages/pip/req.py", line 325, in run_egg_info 
    command_desc='python setup.py egg_info') 
    File "/Library/Python/2.7/site-packages/pip/util.py", line 697, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
InstallationError: Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/matplotlib 

这是什么与我最近更新到优胜美地(来自小牛队);或者它是否与recent changes有关,它们似乎是matplotlibfreetype依赖关系 - 或者两者都有?如果是这样,我能做些什么来解决它?


更新:与1.4.2相同的问题。

+0

为什么不选择你轮子? https://pypi.python.org/pypi?name=matplotlib&version=1.4.1&:action=display – tacaswell 2014-10-19 18:49:50

+0

请为此创建一个gh问题。 – tacaswell 2014-10-19 18:50:19

+0

你能否提供建筑物的_full_输出。 – tacaswell 2014-10-23 01:25:49

回答

0

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

我在setupext.py下载源matplotlib 1.4.2,
改变的线960在https://github.com/matplotlib/matplotlib/pull/3713/files描述:

'freetype2', 'ft2build.h', 

becames

'freetype2', 'freetype2/ft2build.h' 

,然后进行编译和安装有:

python setup.py build 
python setup.py install