How to use setup.py to install dependencies only?

醉酒当歌 提交于 2021-02-06 15:29:30

问题


I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py? It seems setup.py installs my package and all dependencies.


回答1:


Use the -e flag on pip install

pip install -e .



回答2:


The only way I've found to reliably do this in a straightforward manner is this:

pip install . && pip uninstall `python setup.py --name`


来源:https://stackoverflow.com/questions/30797124/how-to-use-setup-py-to-install-dependencies-only

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