简体   繁体   中英

Installing packages from source into EPD Python on Mac OS X

I recently compiled the shogun library from source, but I'm not sure where I need to place the python files created. make install placed them in '/usr/local/lib/python2.7/dist-packages' which I assume is valid on linux systems.

sys.path in python doesn't have a dist-packages in its path, only a site-packages

When you configure shogun, you need to specify the python path.

http://www.shogun-toolbox.org/doc/en/current/installation.html

./configure --pydir /path to epd

Then remake and reinstall.

Workaround: Decided to simply add a .pth file to my site-packages directory which points to /usr/local/lib/python2.7/dist-packages

That is: Place in /Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages a file shogun.pth which simply contains: /usr/local/lib/python2.7/dist-packages/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM