I'm completely new to Python and most aspects of compiling C.
My default python interpreter is the anaconda interpreter for python 2.7. I'm trying to install pyipopt following these instructions: https://github.com/xuy/pyipopt. Pyipopt installed to /usr/local/lib/python2.7/dist-packages/pyipopt
, but when I try import pyipopt
I get an error saying that pyipopt wasn't found.
I then tried copying the installed folder into Anaconda's pkgs folder. At first it said Error: import pyipopt ImportError: can not find libipopt.so.1
, but then it went back to saying that pyipopt wasn't found after I logged out and back in.
I then tried copying the installed folder into {anaconda_dir}/lib/python2.7/site-packages
, but it again said Error: import pyipopt ImportError: can not find libipopt.so.1
. The troubleshooting section on the github page says to copy libipopt.so.1
into a folder accessible to ld, but I'm not really sure which folder would fit the bill.
Could someone give a brief explanation or link on how python finds C libraries or other .so libraries? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…