1

我正在尝试为pandasat构建一个轮子0.17.1。我希望它使用numpyversion 1.9.2。我有一个numpy已经内置的版本的轮子$PWD/wheelhouse,以及其他一些pandas依赖项:

ls wheelhouse/
numpy-1.9.2-cp34-cp34m-linux_x86_64.whl python_dateutil-2.4.2-py2.py3-none-any.whl  pytz-2015.7-py2.py3-none-any.whl  six-1.10.0-py2.py3-none-any.whl

但是,当我告诉pandas构建时,即使我用 通知它操舵室文件夹--find-links,它仍然会构建一个新的轮子numpy

$ pip --version
pip 6.0.8 from /home/me/.pyenv/versions/3.4.3/lib/python3.4/site-packages (python 3.4)
$ pip wheel pandas==0.17.1 --find-links=$PWD/wheelhouse
Collecting pandas==0.17.1
  Using cached pandas-0.17.1.tar.gz
[... snipped, building stuff ...]
Collecting python-dateutil>=2 (from pandas==0.17.1)
  File was already downloaded /home/me/rebuild_numpy_py3/wheelhouse/python_dateutil-2.4.2-py2.py3-none-any.whl
Collecting pytz>=2011k (from pandas==0.17.1)
  File was already downloaded /home/me/rebuild_numpy_py3/wheelhouse/pytz-2015.7-py2.py3-none-any.whl
Collecting numpy>=1.7.0 (from pandas==0.17.1)
  Using cached numpy-1.10.2.tar.gz
    Running from numpy source directory.
Collecting six>=1.5 (from python-dateutil>=2->pandas==0.17.1)
  File was already downloaded /home/me/rebuild_numpy_py3/wheelhouse/six-1.10.0-py2.py3-none-any.whl
Skipping python-dateutil, due to already being wheel.
Skipping pytz, due to already being wheel.
Skipping six, due to already being wheel.
Building wheels for collected packages: pandas, numpy
  Running setup.py bdist_wheel for pandas
  Destination directory: /home/me/rebuild_numpy_py3/wheelhouse
  Running setup.py bdist_wheel for numpy
  Destination directory: /home/me/rebuild_numpy_py3/wheelhouse
Successfully built pandas numpy

$ ls wheelhouse/
numpy-1.10.2-cp34-cp34m-linux_x86_64.whl  numpy-1.9.2-cp34-cp34m-linux_x86_64.whl  pandas-0.17.1-cp34-cp34m-linux_x86_64.whl  python_dateutil-2.4.2-py2.py3-none-any.whl  pytz-2015.7-py2.py3-none-any.whl  six-1.10.0-py2.py3-none-any.whl

绑定的版本pandas>=1.7.0,所以那里的轮子肯定可以工作。那么它为什么要制造一个新的轮子呢?如何强制它使用现有的?

4

1 回答 1

0

轮子不是这样工作的。pandas 需要一个>= 1.7.0numpy 版本。即使已经有更新版本的 numpy,您仍试图强制它查找 1.9.2。即使您已经在您的操舵室目录中拥有它,它也会检查 PyPI 是否有最新版本的 numpy,因为这是 pandas 的 setup.py 文件中所述的内容。

于 2015-12-19T22:22:50.997 回答