当一个已经存在时,Pip轮正在构建一个新的轮子

时间:2015-12-18 18:32:38

标签: python numpy pandas pip python-wheel

我正试图在0.17.1numpy制作一个轮子。我希望它使用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上绑定的版本是{{1}},所以当然那里的轮子应该可以工作。那为什么要建造一个新车轮呢?如何强制它使用现有的?

1 个答案:

答案 0 :(得分:0)

这不是车轮的工作方式。大熊猫需要>= 1.7.0版本的numpy。你试图强迫它寻找1.9.2,尽管已经有了numpy的新版本。即使你已经在你的驾驶室目录中已经有了它,它也会检查PyPI以获得最新版本的numpy,因为这是熊猫的说法。 setup.py文件。