AttributeError: module 'subprocess' has no attribute 'mswindows'

AttributeError: module 'subprocess' has no attribute 'mswindows'

我在尝试导入时收到 AttributeError

from coopr.pyomo import *

我尝试了一些东西,使用 pip (un)install coopr,coopr.pyomo,pyomo,coopr.opt,我猜这不太聪明。

非常感谢您的帮助。

Coopr 包已重命名为 Pyomo。有关如何升级的信息,请参阅 this 博客 post。

python 3.5 将 'mswindows' 重命名为 '_mswindows'