问题
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