我找到了一个兼容python3的pyOpt包:https://github.com/madebr/pyOpt我使用如下命令窗口安装它:pythonsetup.pyinstall安装过程中出现一些警告或错误:cobylamodule.obj:errorLNK2001:unresolvedexternalsymbolpyflush_和一些像这样几乎相同的指令File"C:\Users\tsing\Anaconda3\Lib\site-packages\pyOpt\pySNOPT\pySNOPT.py",line422ifmode0andself.h_start:^SyntaxError:i