Install esptool inside Virtual Environment, on Raspberry Pi 5 running 64-bit Raspberry Pi OS (bookworm).
In pre-bookworm Raspberry Pi OS, esptool can be install esptool directly,
system-wide, using pip. This is no longer the case in the new Raspberry Pi OS
(bookworm).
From bookworm onwards, when using pip, packages must
be installed into a Python virtual environment.
(ref:
https://www.raspberrypi.com/documentation/computers/os.html#installing-python-packages-using-apt)
This video show steps in Esptool.py Documentation to Install esptool inside Virtual Environment, on Raspberry Pi 5
running 64-bit Raspberry Pi OS (bookworm).
- Create a virtual environment and choose its name, e.g. ‘esptoolenv’:
$ python -m venv esptoolenv
- Activate the virtual environment:
$ source esptoolenv/bin/activate
- Install the esptool.py within the active virtual environment:
$ pip install esptool
- When you’re done, deactivate the virtual environment:
$ deactivate
next:
~ Install CircuitPython firmware on Waveshare ESP32-S3-Zero
Comments
Post a Comment