how to install snopt in python

71 views
Skip to first unread message

bao hanqiu

unread,
Apr 26, 2023, 10:07:11 AM4/26/23
to SNOPT
how can i get the   daxpy_ ?
error information:
Traceback (most recent call last):
  File "dieta.py", line 7, in <module>
    from   snopt import snopta, SNOPT_options
  File "/home/ab/.local/lib/python2.7/site-packages/snopt/__init__.py", line 8, in <module>
    from .solvers  import(
  File "/home/ab/.local/lib/python2.7/site-packages/snopt/solvers/__init__.py", line 6, in <module>
    from .py_snopt import snopta, snoptb, snoptc, sqopt
  File "/home/ab/.local/lib/python2.7/site-packages/snopt/solvers/py_snopt/__init__.py", line 3, in <module>
    from .py_snopt import snopta, snoptb, snoptc, sqopt
  File "/home/ab/.local/lib/python2.7/site-packages/snopt/solvers/py_snopt/py_snopt.py", line 4, in <module>
    from   snopt.solvers          import snopt7_python as fsnopt
ImportError: /usr/local/lib/libsnopt7.so.0: undefined symbol: daxpy_

SNOPT

unread,
Apr 26, 2023, 12:37:53 PM4/26/23
to SNOPT
You need to install blas libraries on your computer.

bao hanqiu

unread,
Apr 27, 2023, 2:53:14 AM4/27/23
to SNOPT
Thanks a lot!
Reply all
Reply to author
Forward
0 new messages