Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Can I just copy the module's source into site-packages, or does pip do something extra?

like image 463
mowwwalker Avatar asked Nov 01 '22 02:11

mowwwalker


1 Answers

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). Be sure there is an init.py file in there, and I always ensure it will be added to my svn source control.

like image 127
KeithE Avatar answered Nov 04 '22 23:11

KeithE