the directory site-packages mentioned in various python related articles. it? how use is?
site-packagestarget directory of manually built python packages. when build , install python packages source (using distutils, executingpython setup.py install), find installed modules insite-pacakgesdefault.there standard locations:
unix(pure): prefix/lib/pythonx.y/site-packages
unix (non-pure): exec-prefix/lib/pythonx.y/site-packages
windows: prefix\lib\site-packages
(pure means module uses python code. non pure can cantain c/c++ code well)
site-pacakgesdefault part of python search path, modules installed there can imported afterwards.a useful article: https://docs.python.org/2/install/
Comments
Post a Comment