Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install stm32pio via python pip




stm32pio - Small cross-platform Python app that can create and update PlatformIO projects from STM32CubeMX .ioc files. It uses STM32CubeMX to generate a HAL-framework-based code and alongside creates PlatformIO project with compatible parameters to stick them both together. Both CLI and GUI editions are available, it belongs to Classifiers:

- Environment :: Win32 (MS Windows)
- Environment :: X11 Applications
- Environment :: X11 Applications :: Qt
- Operating System :: MacOS :: MacOS X
- Operating System :: Unix
- Topic :: Software Development :: Embedded Systems

When you know about this project and you want to new install stm32pio to support your project or you get trouble as ModuleNotFoundError: No module named "stm32pio" or ImportError: cannot import name "stm32pio" in your project, let follow this tutorial to install stm32pio



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_stm32pio_env

- Active the virtual environment

test_stm32pio_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_stm32pio_env

- Active the virtual environment

source test_stm32pio_env/bin/active


Step 2: OK, now, let flow below content to start the installation stm32pio

To install stm32pio on Windows(CMD):

py -m pip install stm32pio

To install stm32pio on Unix/macOs:

pip install stm32pio


Step 3: If you want to install a specific stm32pio version, add ==<stm32pio version> to the end command line

Example:

pip install stm32pio==0.95


Please see the version list below table:

VersionReleased dateCommand
stm32pio 2.1.22021-10-07T14:57:07Windows:

py -m pip install stm32pio==2.1.2

Unix/macOs:

pip install stm32pio==2.1.2

stm32pio 2.1.12021-08-09T12:45:21Windows:

py -m pip install stm32pio==2.1.1

Unix/macOs:

pip install stm32pio==2.1.1

stm32pio 2.1.02021-01-09T19:19:46Windows:

py -m pip install stm32pio==2.1.0

Unix/macOs:

pip install stm32pio==2.1.0

stm32pio 2.0.02020-10-28T19:57:28Windows:

py -m pip install stm32pio==2.0.0

Unix/macOs:

pip install stm32pio==2.0.0

stm32pio 1.302020-05-05T20:13:55Windows:

py -m pip install stm32pio==1.30

Unix/macOs:

pip install stm32pio==1.30

stm32pio 1.212020-04-19T00:52:56Windows:

py -m pip install stm32pio==1.21

Unix/macOs:

pip install stm32pio==1.21

stm32pio 1.202020-04-18T21:25:19Windows:

py -m pip install stm32pio==1.20

Unix/macOs:

pip install stm32pio==1.20

stm32pio 1.102020-03-15T18:44:46Windows:

py -m pip install stm32pio==1.10

Unix/macOs:

pip install stm32pio==1.10

stm32pio 0.962019-12-17T20:32:07Windows:

py -m pip install stm32pio==0.96

Unix/macOs:

pip install stm32pio==0.96

stm32pio 0.952019-12-15T20:18:20Windows:

py -m pip install stm32pio==0.95

Unix/macOs:

pip install stm32pio==0.95


Step 4: Otherwise, you can install stm32pio from local archives:

Download the distribution file from stm32pio-2.1.2.tar.gz or the specific stm32pio version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_stm32pio_downloaded_file>

On Unix/macOs:

pip install <path_to_stm32pio_downloaded_file>


List distribution:


Project link:

- Homepage