Pip does not acknowledge Cython

十年热恋 提交于 2019-12-21 04:38:13

问题


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

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?

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: 

But

$ 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:


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

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


来源:https://stackoverflow.com/questions/26069080/pip-does-not-acknowledge-cython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!