Installing pyupdi

Hello, I have included pyupdi options in my pio.ini file and in this url it explains how to install pyupdi:

where it indicates to use the following command in PIO:

pip install

however pip is not recognised by PIO:

pip install
pip : The term ‘pip’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

Is there an alternative install method?

thanks very much for help

I’m assuming you want to install PyUPDI within the isolated Python environment that PlatformIO uses.

For that, open a PlatformIO CLI and then execute the pip install command.

If that still doesn’t work, talk to the Python interpreter executable directly. Execute pio system info and copy the value of Python Executable then copy-paste that and do

<python executable path> -m pip install 

thanks, I found the PIO CLI and installed pyupdi.

I got a message to inform me there’s a newer version of pip, so updated using the command:
pip install --upgrade pip

but it didn’t go well as described below. Have I messed it up and if so how would I correct things?

just to note I have admin rights on the machine. (WIN 10)

WARNING: You are using pip version 20.3.3; however, version 21.0.1 is available.
You should consider upgrading via the ‘c:\users\paul.platformio\penv\scripts\python.exe -m pip install --upgrade pip’ command.
PS C:\Users\Paul\Documents\PlatformIO\Projects\USART-Example-4809> pip install --upgrade pip
Requirement already satisfied: pip in c:\users\paul.platformio\penv\lib\site-packages (20.3.3)
Collecting pip
Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.2 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.3.3
Uninstalling pip-20.3.3:
Successfully uninstalled pip-20.3.3
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: ‘C:\Users\Paul\AppData\Local\Temp\pip-uninstall-bxgwayqv\pip.exe’
Consider using the --user option or check the permissions.

PS C:\Users\Paul\Documents\PlatformIO\Projects\USART-Example-4809>

MIght be intentional because its in own pyenv…? I’d rather let PlatformIO’s pip version be in peace.

But also note that you are talking to your system PIP here, and not PlatformIO’s pip when you executed pip install --upgrade pip. The full command above

should have been used.

probably completely indicative that I haven’t a clue what I’m doing. Never do something unless you know what you’re doing…

I just need this pyupdi thing because apparently it’s required to program an avr4809

thanks for help