繁体   English   中英

Pip不承认Cython

[英]Pip does not acknowledge Cython

我刚刚在全新的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!

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM