Hi, I am trying to install NLOpt for Python 2.7.6 in Ubuntu 14.04.2 LTS.
I performed the following steps: 1) Downloaded the .gz file and extracted under ~/nlopt-2.4.2 2) Issued the following command at the terminal: ~/nlopt-2.4.2/configure PYTHON=python && make && sudo make install. 3) Included the following path: ~/nlopt-2.4.2/swig in the lib-site packages for Python-2.7.6 In the Python intepreter, when I issued the command: import nlopt, I got the following error: *Traceback (most recent call last):* * File "<stdin>", line 1, in <module>* * File "/home/s0r2637/nlopt-2.4.2/swig/nlopt.py", line 35, in <module>* * _nlopt = swig_import_helper()* * File "/home/s0r2637/nlopt-2.4.2/swig/nlopt.py", line 27, in swig_import_helper* * import _nlopt* *ImportError: No module named _nlopt* Could someone please tell me what I am doing wrong here? I really need this to work, as I have a few optimization problems to run. -- Sr. Algorithm Engineer *Rebellion Photonics, Inc.* 7547 South Fwy, Houston, TX 77021 (713) 218-0101
_______________________________________________ NLopt-discuss mailing list NLopt-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss