Pip不承认Cython

时间:2014-09-26 22:16:56

标签: python pip pytables

我刚刚在全新的Mac OS安装中通过home-brew安装了pip和Python。

首先,我的pip根本没有安装依赖项 - 这迫使我重新运行'pip install tables'3次,每次它都会告诉我一个依赖项,我会安装它然后再重新运行它。这是预期的行为吗?

其次,它不接受很快就安装的Cython的安装:

$ pip show cython
---
Name: Cython
Version: 0.21
Location: /usr/local/lib/python2.7/site-packages
Requires: 

但是

$ pip install tables
Downloading/unpacking tables
  Downloading tables-3.1.1.tar.gz (6.7MB): 6.7MB downloaded
  Running setup.py (path:/private/var/folders/r_/9cc9_ldj7g35cqnfql52hqt80000gn/T/pip_build_excuvator/tables/setup.py) egg_info for package tables
    * Using Python 2.7.8 (default, Aug 24 2014, 21:26:19)
    * Found numpy 1.9.0 package installed.
    * Found numexpr 2.4 package installed.
    .. ERROR:: You need Cython 0.13 or greater to compile PyTables!
    Complete output from command python setup.py egg_info:
    * Using Python 2.7.8 (default, Aug 24 2014, 21:26:19)

* Found numpy 1.9.0 package installed.

* Found numexpr 2.4 package installed.

.. ERROR:: You need Cython 0.13 or greater to compile PyTables!

1 个答案:

答案 0 :(得分:15)

从上游Git仓库升级Cython将解决问题。

 pip install --upgrade git+git://github.com/cython/cython@master