Robotpy Commands Not Working with "py -3 -m"

Hello,

We’ve been trying to use robotpy commands on our robot. The documentation says to use “py -3 -m” in front of the robotpy command and that gives us errors. We found that removing it allowed us to use the commands.

This is the command that doesn’t work: py -3 -m robotpy sim
Error that popped up: ModuleNotFoundError: No module named ‘commands2’

This is the command that does work: robotpy sim

Does anyone know why we are getting this problem?

You have multiple pythons installed on your computer at the same time.
py -3 -m robotpy sim is using python number 1.
robotpy sim is using python number 2.

When you use pip you should be using py -3 -m pip instead.

If you have multiple pythons installed and you don’t intend for that to be the case, recommend uninstalling all but the latest python.