Home RobotPy Dev Setup with Miniconda

RobotPy Dev Setup with Miniconda


In this post, we’ll look at setting up a development environment for RobotPy using Miniconda. You should follow the directions below and have a basic working RobotPy dev setup with minimal effort. Let’s get started.

  1. Download and install Miniconda from this page.
  2. Open a terminal with the cmd command
  3. Create an environment with Miniconda

     conda create --name robotpy python=3.9
  4. Activate the environment

     conda activate robotpy
  5. Install the robotpy libraries and dependencies

     pip install --upgrade robotpy[all]
  6. Create a folder for your source code
  7. Create a test file in the folder and copy in one code from one of the example files here
  8. Test the code

     python robot.py test
  9. Run a simulation with the code

     python robot.py sim

Closing the loop

If you followed the steps above you should now have a working dev environment ready to use when writing and debugging your RobotPy code. For tools for writing the code, I would recommend starting with Visual Studio Code. Have fun and watch for more as the FRC season continues, till then fair winds and following seas.

This post is licensed under CC BY 4.0 by the author.