Why does easy install want access to my rootfs for a “develop” install?

China☆狼群 提交于 2019-12-12 21:14:47

问题


I'm looking at a python application server and I wanted to play around with the code. I'm lead to believe passing "develop" to setup.py should leave everything in place without installing anything. However when running so it is attempting to creating directories in my rootfs.

./setup.py develop

Gives:

running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: can't create or remove files in install directory

I thought this might be something to do with package checking but surely attempting to write stuff into the rootfs is wrong?


回答1:


The develop command wants to add a .pth entry for your project so that it can be imported as an egg. See the Development mode documentation, as well as the develop command docs.

The default is to put that entry in site-packages. Set a different library path with the --install-dir switch.




回答2:


You can use --user option (Alternate installation: the user scheme).



来源:https://stackoverflow.com/questions/14812400/why-does-easy-install-want-access-to-my-rootfs-for-a-develop-install

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