thonny: Can't install any modules on Thonny
Hey (sorry for my bad English) i manage to try many things with Tonny text editor, formy rRaspberry Pi Pico (i very like it btw exellent work !) but i have several issues when i tried to install modules (packages). When I began the installation, this error line code appeared:
ERROR: Can not combine '--user' and '--target' Process returned with code 1
But i solved this because my Rasp Pi was not plugged x’)
The problem now is, when i start the installation, its collecting package but stop with an error
[end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Error Command '['C:\Users\33631\AppData\Local\pipkin\cache\workspaces\b1843a146278d117477687961e4e0504\Scripts\python.exe', '-I', '-m', 'pip', '--no-color', '--disable-pip-version-check', '--trusted-host', '127.0.0.1', 'install', '--no-compile', '--use-pep517', '--upgrade-strategy', 'only-if-needed', 'micropython-ssd1306', '--index-url', 'http://127.0.0.1:36628']' returned non-zero exit status 1.
I’ve seen about a package called “Pipkin” wich is a module who can download packages for Micropython, on PyPi, but i don’t know how to use it. I tried many things, change the directory, install with the cmd and research with the Install from a local file, but it is still not working.

I use:
. Python version: 3.10 . Pip version: 22.3 . Thonny version: 4.0.1
Still working on it, thank in advance 😃
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 31 (6 by maintainers)
When downgrading to
thonny 3.3.14installing packages works again.I have tried and got this issue both in
thonny 4.0.0andthonny 4.0.1The problem above is still existing in version 4.1.3. I use a Mac with Ventura installed. There is enough space on my machine. Even the work around mentioned in https://github.com/thonny/thonny/issues/2538#issuecomment-1426854836 does not help.
Any further ideas?
you need to change to “MicroPython (Raspberry Pi Pico)” by clicking at the bottom right where it says “Python”
@magnussommarsjo I took your approach and it worked! I revert to thonny ver.3.3.13 and the package downloads smoothly.
The system I used when having download package issue:
macOS Ventura 13.0.1 Thonny 4.0.1 Python 3.10.8
I’m also seeing this error. Apple M1 with Ventura 13.0
About Thonny reports:
Thonny 4.0 Darwin 22.1.0 Python 3.10.6 Tk 8.6.12
Some packages install OK, e.g. micropython_unittest
When I try to install micropython-umqtt.simple, I get the following: