当我尝试运行示例/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我还没有看到指定库路径的选项..。
发布于 2019-08-21 16:32:02
库路径不被识别,/Library/Frameworks/Python.framework/Versions/3.7/Python不存在,但/opt/local//Library/Frameworks/Python.framework/Versions/3.7/Python路径不存在。
因此,作为/Library/Framework中的一个解决方案,我做了一个
sudo ln -s /opt/local/Library/Frameworks/Python.framework . 现在机器人开始..。
https://stackoverflow.com/questions/57595884
复制相似问题