Binary Installation on Windows 11
WARNING: Current Windows support is experimental.
Binaries for all the dependencies used by Gazebo can be found in the conda-forge package repository. The Gazebo buildfarm and these instructions use the Pixi package manager.
Install dependencies
Follow the Pixi installer instructions from https://pixi.sh/latest/ to install pixi. Once pixi has been installed, close the terminal session and start it again, which will ensure pixi is on the PATH.
Make a folder to initialize the Pixi project. Just make sure that the directory does not contain any spaces. Open up a command prompt and type the following
bashcd C:\Users\%USERNAME%\ mkdir gz-ws cd gz-ws pixi init
You should see this:
```bash
✔ Created C:\Users\USER\ws_gz\pixi.tomlPrepare the pixi.toml file Now that the Pixi environment has been installed, you can add the packaged gazebo binary to it and some necessary environment variables for the QT library.
Open up the pixi.toml file in your editor of choice or simple notepad.
bash
notepad pixi.toml
Replace `[dependencies]` with the following in the pixi.toml file
```default
[target.win-64.activation.env]
QT_QPA_PLATFORM_PLUGIN_PATH="%CONDA_PREFIX%\\Library\\lib\\qt6\\plugins\\platforms"
QML2_IMPORT_PATH="%CONDA_PREFIX%\\Library\\lib\\qt6\\qml"
[dependencies]
gz-sim = "10.*"Save and close the pixi.toml file, and then let Pixi pull all the dependencies and install Gazebo.
pixi installYou should be seeing this
✔ The default environment has been installed.You should now be able to launch gazebo normally within a pixi shell:
pixi shell
gz sim -v4 shapes.sdfor do a pixi run which is the same thing but just one line:
pixi run gz sim -v4 empty.sdfNote, currently just running
gz simdirectly doesn’t work due to this issue, so make sure to to always assign a world sdf file until this has been solved.
Note
On Windows, Python from conda-forge provides python.exe but no python3.exe, so python3
does not run the Python from this environment (it may open the Microsoft Store instead).
When a tutorial uses python3, run the same command with python.
This is the end of the binary install instructions; head back to the Getting started page to start using Gazebo!
Uninstalling binary-based gazebo install
Uninstalling the Gazebo binary is as simple as removing the full folder that was created with the Pixi environment.
In a command prompt, navigate to the root directory of where the folder is (depending on the location you chose at the first step), and remove it.
cd C:\Users\%USERNAME%\
rmdir /s /q gz-wsTroubleshooting
See Troubleshooting