Closed aaronjohnsabu1999 closed 11 months ago
These are the current installation instructions for windows: https://cyipopt.readthedocs.io/en/stable/install.html#from-source-on-windows
Did you follow those instructions?
@moorepants Yes, I did. It still shows the same error.
$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 192, in <module>
ext_module_data = handle_ext_modules_general_os()
File "setup.py", line 171, in handle_ext_modules_general_os
**pkgconfig("ipopt"))
File "setup.py", line 98, in pkgconfig
output = sp.Popen(["pkg-config", "--libs", "--cflags"] + list(packages),
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
The error shows that it doesn't know you are on Windows, so It isn't clear that you have set the correct environment variables so it can find Ipopt on windows. Did you follow that part of the instructions?
Seems to be the same issue as https://github.com/mechmotum/cyipopt/issues/195.
Not enough information is provided to debug this. Maybe it was the same issue as #195. Please reopen if that fix doesn't address the issue.
Also worth noting that you seem to be downloading an old version of cyipopt:
Collecting ipopt
Downloading ipopt-1.0.3.tar.gz (42 kB)
pip install ipopt
doesn't work for my Windows 11 system when run on Git Bash.Here's the output: