Skip to content

Pybullet Windows Installation

Suke0811 edited this page Oct 7, 2022 · 1 revision

When you run

pip install pybullet

You can get the following errors on Windows.

error: Microsoft Visual C++ 14.0 or greater is required. 
Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Then, you can install the following windows sdk: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/

You can re run pip install.

If you get another error on 64-bit systems saying:

pybullet LINK : fatal error LNK1158: cannot run 'rc.exe' 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit code 1158

You can follow this answer (move your rc.exe installation from windows sdk to a visual studio folder)

https://stackoverflow.com/questions/35215971/lnk1158-cannot-run-rc-exe-x64-visual-studio/

Move

  • rc.exe
  • rcdll.dll

from

  • C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64 (or the latest version like 10.0.22621.0)

and pasted into visual studio installation folder

  • C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

Clone this wiki locally