我正在尝试解决pyomo(solver = ipopt)的问题。我在Windows10中安装了Anaconda。
当我从spyder运行时,我得到:
Solver log file: 'C:\Users\MC\AppData\Local\Temp\tmp3ba3l1v5_ipopt.log'
Solver solution file: 'C:\Users\MC\AppData\Local\Temp\tmpf_uhkuem.pyomo.sol'
Solver problem files: ('C:\\Users\\MC\\AppData\\Local\\Temp\\tmpf_uhkuem.pyomo.nl',)
Exception in thread Thread-7:
Traceback (most recent call last):
File "C:\Users\MC\Anaconda3\lib\threading.py", line 914, in _bootstrap_inner
self.run()
File "C:\Users\MC\Anaconda3\lib\threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\MC\Anaconda3\lib\site-packages\pyutilib\subprocess\processmngr.py", line 292, in _merged_reader
encoding = sys.__stdout__.encoding
AttributeError: 'NoneType' object has no attribute 'encoding'
但是,从命令提示符运行相同的问题我得到了正确的解决方案,图形等
有什么想法吗?