首页 > 解决方案 > 扩展异常。Python 无法启动

问题描述

我正在尝试在 Netlogo 模型中使用 python 扩展。我一开始就声明了我的python扩展,

extensions [gis nw py]

并通过菜单配置到python的路径(python -> configure)

/Users/imantha/Software/anaconda3/envs/CRTTEnv/bin/python3.7

请注意,python 版本是 anaconda 环境。但是,当我尝试运行模型时,出现以下错误,

Extension exception: Python failed to start. Encountered an error while running '/Users/imantha/Software/anaconda3/envs/CRTTEnv/bin/python3.7'. Check to make sure the correct path was entered in the Python configuration menu or supply the correct path as an argument to PY:SETUP.

任何想法为什么我会收到以下错误。请注意我使用的是 macOS 系统。我确实在 Windows 中做了同样的事情,它工作得很好。唯一的区别是我使用 .exe 作为扩展名path/python3.7.exe

在此处输入图像描述

标签: netlogo

解决方案


推荐阅读