Can python setup.py install use wheels?

帅比萌擦擦* 提交于 2019-12-07 03:06:08

问题


I am using setuptools. Is there a way to have the following command use wheels instead of source?

python setup.py install

In particular, I have a custom package that requires pandas. While pandas installs perfectly fine with pip (because it grabs the wheel), pandas won't install while running python setup.py (due to pandas having missing dependencies on my machine)

Or perhaps, how do other people handle pandas as a dependency in there projects? Must I include all of pandas dependencies in my setup.py file?

Thanks


回答1:


One solution is to use pip to install you project. pip is able to handle your setup.py correctly and will use wheels by default if available.

So you can try to replace:

python setup.py install by pip install .

That should work.



来源:https://stackoverflow.com/questions/39983835/can-python-setup-py-install-use-wheels

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