我试图安装 ComplexNetworkSim。我按照此处显示的说明进行操作: https ://pythonhosted.org/ComplexNetworkSim/installation.html
按照建议,我使用 setuptools 安装 NetworkX 和 SimPy(这是 ComplexNetworkSim 的先决条件)。
但是,当我尝试在 PyCharm 中使用该包时,基于此示例:
from ComplexNetworkSim import NetworkAgent, Sim
我收到以下错误消息:
Traceback (most recent call last):
File "C:/Users/Natan/PycharmProjects/final_project_Lev/solution.py", line 1, in <module>
from ComplexNetworkSim import NetworkAgent, Sim
File "build\bdist.win32\egg\ComplexNetworkSim\__init__.py", line 1, in <module>
File "build\bdist.win32\egg\ComplexNetworkSim\agents.py", line 7, in <module>
ImportError: No module named SimPy