繁体   English   中英

当已有轮子时,拨轮正在建立一个新轮子

[英]Pip wheel is building a new wheel when one is already present

我正在尝试为0.17.1 pandas制作轮子。 我希望它使用numpy版本1.9.2 我有一个已经在$PWD/wheelhouse构建的numpy版本的轮子,以及其他一些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通知了--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 ,因此可以肯定那里的轮子应该可以工作。 那么为什么要建立一个新的轮子呢? 如何强制它使用现有的?

那不是轮子的工作方式。 熊猫需要numpy >= 1.7.0版本。 您试图强迫它寻找1.9.2,即使已经有新版本的numpy。 即使您已经在操舵室目录中添加了它,它也会检查PyPI中是否有最新版本的numpy,因为这是pandas的setup.py文件中所述的内容。

暂无
暂无

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

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