Skip to main content
Clark Sann
Associate III
March 30, 2025
Question

Using Python virtual environment in Cube IDE

  • March 30, 2025
  • 1 reply
  • 551 views

I am developing an SBSFU based project for the B-U585I-IOT02A discovery board. The SBSFU project contains various python scripts that are automatically run during the build process. 

How can I force STM32CubeIDE to use the Python version and packages in my virtual environment? 

1 reply

Pavel A.
Super User
March 30, 2025

To force python to use a specific venv, make sure that the python binary is the one inside the venv. Modify the PATH or do whatever else.