How come I can't get the exactly result to *pip install* by manually *python setup.py install*?

好久不见. 提交于 2019-12-01 04:20:52

pip uses setup.py internally. It just passes additional option to it. To reproduce what pip is doing, execute

python setup.py install --single-version-externally-managed

You can also run pip -vv to see exactly which commands are run.

Q. How come I can't get the exactly result to pip install by manually python setup.py install?

Because pip and setup.py are two different pieces of software.

pip is not advertised as providing identical behaviour to setup.py, nor vice versa.

If you want the behaviour of pip, use pip; if you want the behaviour of setup.py, use setup.py.

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