当我在Python中寻找物理引擎时,发现了两个,PyODE和PyBullet。
我已经安装了PyBullet,所以记下它
环境
- Windows 10家庭版
- 的Python 3.6.8
我做了什么
通过PyPI
确认
查看PyPI,似乎可以使用pip进行安装
链接
使用pip
安装
1 | >pip install pybullet |
失败。我有一个错误。
1 | error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ |
安装Visual Studio 2019的构建工具
参考资料
https://qiita.com/white0221/items/b48f1b64dbd810e21702
再次pip
1 | >pip install pybullet |
成功!
1 | Successfully installed pybullet-2.5.5 |