gpt4 book ai didi

JModelica 中的 Python/Pyomo 错误

转载 作者:太空狗 更新时间:2023-10-30 01:37:30 24 4
gpt4 key购买 nike

我已经为 JModelica(基于 python)安装了商业求解器包 (OCT) --> 当我想通过“Ipython”打开 JModelica 时,我收到以下错误消息:

Traceback (most recent call last):

File "C:\OCT-1.0b1\Python27\scripts\ipython-script.py", line 5, in <module>

from pkg_resources import load_entry_point

File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2825, in

<module>

add_activation_listener(lambda dist: dist.activate())

File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 710, in

subscribe

callback(dist)

File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2825, in

<lambda>

add_activation_listener(lambda dist: dist.activate())

File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2260, in

activate

map(declare_namespace, self._get_metadata('namespace_packages.txt'))

File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 1836, in

declare_namespace

path = sys.modules[parent].__path__

KeyError: 'pyomo'

我通过 spyder/Anaconda2(64 位)使用 pyomo

如果有人能帮助我,那就太好了!

最佳答案

关于JModelica 中的 Python/Pyomo 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36747201/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com