当我尝试运行 samples/robotbenchmark/squar_path 示例时,我首先收到消息:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of Webots will drop support for Python 2.7.
[square_path_supervisor] DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of Webots will drop support for Python 2.7.
而 Python 3.7 版本
python --version
Python 3.7.4
可通过我的 Macports 环境使用
port version
Version: 2.5.4
所以我认为 Webots 不使用我的 macports 配置文件中的设置 - 我怎么能做到这一点?我尝试将python路径设置为
/opt/local/bin/python
在首选项/一般情况下,但后来我收到了投诉:
ImportError: dlopen(/Applications/Webots.app/lib/python37/_controller.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.7/Python
而且我还没有看到指定库路径的选项...