点不承认Cython [英] Pip does not acknowledge Cython

查看:88
本文介绍了点不承认Cython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过Home-brew在新的Mac OS安装上安装了pip和Python.

I just installed pip and Python via home-brew on a fresh Mac OS installation.

首先,我的pip根本没有安装依赖项-这迫使我重新运行3次"pip install table",每次它会告诉我一个依赖项,然后我将其安装并重新运行.这是预期的行为吗?

First of all, my pip is not installing dependencies at all - which forces me to re-run 'pip install tables' 3 times and every time it will tell me a dependency and I will install that and then rerun it again. Is this expected behavior?

第二,它不接受刚才安装的Cython的安装:

Second, it does not accept the installation of Cython that it installed itself moments ago:

$ 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将解决此问题.

Upgrading Cython from the upstream Git repo will resolve the problem.

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

这篇关于点不承认Cython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆