[英]What happens during a python module install? Can I just copy the module source to site-packages?
I'm having trouble installing M2Crypto on my shared webhost account with pip. 我在使用pip在我的共享虚拟主机帐户上安装M2Crypto时遇到问题。 Can I just copy the module's source into site-packages, or does pip do something extra?
我可以将模块的源代码复制到site-packages中,还是pip做额外的事情?
I have wondered the same thing in the past. 我曾经想过同样的事情。 However, I've had no problem installing packages "manually" by downloading them to my desktop, expanding them, then copying the appropriate objects to a sub-folder in my /extras directory (mine is a Django system).
但是,通过将软件包下载到我的桌面,扩展它们,然后将相应的对象复制到my / extras目录中的子文件夹(我的是Django系统),“手动”安装软件包没有问题。 Be sure there is an init .py file in there, and I always ensure it will be added to my svn source control.
确保有一个init .py文件,我总是确保它将被添加到我的svn源代码控制中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.