netlogo - 扩展异常。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
解决方案
推荐阅读
- python-3.x - 在一行中对此 python 命令的解释
- selenium - 如何在 goibibo/hotels.com(孟买地区)中使用 selenium 选择入住和退房日期
- phpstorm - PhpStorm 2019 或更新版本 - 如何使用 Windows 主题?
- http-post - Exist DB XQuery:如何发出 HTTP POST 请求
- c - Ctrl + Z 和 Ctrl + C 的区别
- javascript - 通过从后端获取数据创建下拉列表
- mysql - SQL查询查找最高工资
- hdfs - 我们如何将 HDFS Alpakka 默认路径 /tmp/alpakka 更改为其他子目录?在此路径上面临写权限问题
- java - java - 如何在Java中将另一个命令提示符设置为标准输出流,而不是开始编译的命令提示符?
- android - 使 CollapsingToolbarLayout 文本两行并适合屏幕