Having trouble installing piicodev from Thonny for raspberry pi 4…it worked before BOOKWORM update or could there be some other problem.
I had a similar issue on my pico W. I had to manually download/install the piivodev files.
It looks like bookworm may be causing a bunch of issues (as new releases tend to do) I will have a look into it and see what’s going on as this is the first time I am hearing about this issue.
As it turns out, Bookworm has removed Pip installs from the current OS so it will make package management a bit different. We are working on a solid solution right now to get it figured out.
You could install the piicodev package (as well as any other pancakes you need) in a Python virtual environment, then set Thonny to use the Python executable in your virtual environment.
I haven’t tried this but it should work.
Tried the link in the virtual environments in Thonny…but it seems that that option for virtual environment doesn’t exist under Thonny options/ interpreter now.
Once you’re on this view under Tools > Options > Interpreter, you can select Local Python 3 and then provide the path to the virtual environment. If you need to active a virtual environment, you can hit New Virtual Environment down in the bottom right to do so, and use the appropriate activate scripts (a batch file for windows, or the source CLI tool for bash) from your command line in order to install pip packages in that environment:
P.S. For anyone reading this in future, these are all workarounds at the moment. I expect there’ll be a new solution soon for the deployment of Python packages either with or without Pip instead. Otherwise, if you’re just looking for the raw PiicoDev MicroPython Modules, you can grab them straight from the repos available below: