I just bought the Build Web Servers ESP32_ESP8266 eBook and am following the instructions to install and configur VSCode app. I have installed VS Code application (ver 1.98.2) onto Ubuntu 24.04 on my computer. Python3 ver 3.12.3 is already installed. Per page 29 on the ebook, I am attempting to now install Python Utilities. I get the following errors when attempting this as follows:
allen@allen-HP-Notebook:~$ sudo apt install python3-distutils
[sudo] password for allen:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package python3-distutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘python3-distutils’ has no installation candidate
How can I solve this issue?
Hello Allen,
Thank you for letting me know. The python3-distutils package was removed in some newer versions of Ubuntu (Ubuntu 24.04 and later). That package is now included in the standard Python library, so that command is no longer necessary to run. To ensure you have everything, you can alternatively run:
sudo apt install python3-dev
Let me know if this command works for you. Thanks!