Hi,
I am on Windows 10 64-bit and wanted to work with the pyOpt-package. After some trial and error I shifted to using msys2. For python, swig and fortran compiler, I'm currently using:
python 3.10.6-1
python-pip 22.2-1
python-setuptools 63.2.0-1
numpy 1.23.1
numpy-ext 0.9.8
joblib 1.0.1
gcc 11.3.0-2
swig 4.0.2-2
which are the version provided by the 'pacman' command.
From within the pyOpt-master folder I ran
python setup.py install
and the corresponding pyOpt folder showed up under site-packages for python3.10.
Example tp037.py seemingly ran fine except for solver ALGENCAN for which I received the error
Traceback (most recent call last):
File "/c/Users/Username/Desktop/pyOpt-master/examples/tp037.py", line 98, in <module>
from pyOpt import ALGENCAN
ImportError: cannot import name 'ALGENCAN' from 'pyOpt' (/usr/lib/python3.10/site-packages/pyOpt/__init__.py)
I'm not sure how to verify whether building the package has been successful. As in the case with the other solvers in tp037, I checked to see if something was compiled and the file
algencan.cpython-310-x86_64-msys.dll
showed up in pyALGENCAN.
I have little experience on this topic so any help or advise you could give me on this issue is greatly appreciated.
Regards!