OK, I uninstalled PlatformIO, which happened almost immediate.
Then, from within VSC, I installed the Espressif IDF extension.
As a good boy, I followed the advice to make sure the ESP-IDF Prerequisites for Linux
are done. This required me to install some packages, most of which were already there,
but some not:
sudo apt-get install git wget flex bison gperf python3 python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
some of the output was:
libssl-dev is already the newest version (3.0.2-0ubuntu1.6).
libusb-1.0-0 is already the newest version (2:1.0.25-1ubuntu2).
libusb-1.0-0 set to manually installed.
python3 is already the newest version (3.10.6-1~22.04).
The following additional packages will be installed:
libhiredis0.14 python3-pip-whl python3-setuptools-whl python3.10-venv
Suggested packages:
distcc | icecc
The following NEW packages will be installed:
ccache gperf libhiredis0.14 python3-pip-whl python3-setuptools-whl
python3-venv python3.10-venv
0 upgraded, 7 newly installed, 0 to remove and 12 not upgraded.
Need to get 3,105 kB of archives.
After this operation, 4,627 kB of additional disk space will be used.
Do you want to continue? [Y/n]
And of course I did want to continue, and the additional packages installed without problem.
After that, I chose the express installation for the espressif tools, and just hit the “install” button.
This resulted in an error:
“/usr/bin/python3 -m pip” is not valid. (ERROR_INVALID_PIP)
When I try to run the command in a terminal, I get:
$ /usr/bin/python3 -m pip
/usr/bin/python3: No module named pip
so, next would be to install pip!
$ sudo apt install python3-pip #python 3
This installation is succesful, and the command “/usr/bin/python3 -m pip” now works.
Sooo… Back to the installation of Espressif!
Hmmm… The page where the linux prerequisites are prescribed is gone.
Uninstalling and reinstalling the espressif IDF doesn’t bring it back. I guess the installer
has checked and observed the required packages to be present and accounted for?
At least, I guess I do not need to do anyhting else.
Next step: remove the blink application, and persuade the new project wizard to create it!
And the wizard trips up again, in precisely the same way…
So, it seems that installing pip needs to be added to the prerequisites page?
(or perhaps I missed it, as I could not get back to that page anymore)
Or did I do something wrong or omitted a step?