As a n00b but a decently technical n00b, I really got caught up with pip and upip.
I think one of the main issues is that when you look on PyPi for packages, the site says you can `pip install` the package, which I now know is not true.
Has anyone discussed with PyPi about allowing for the how to install in the top banner to say upip instead of pip ?
Another option would be to add a big "THIS IS MICROPYTHON USE UPIP." to the top of all the package descriptions, but that seems less elegant.
Thanks,
-p
PyPi and upip
Re: PyPi and upip
Specifically this would be for any packages which match the filter : Programming Language :: Python :: Implementation :: MicroPython
https://pypi.org/search/?c=Programming+ ... &q=&page=2
https://pypi.org/search/?c=Programming+ ... &q=&page=2
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: PyPi and upip
It would be also nice if pip was enhanced to support micropython packages. Then you could use simple `pip download` for preparing a lib directory for non-networked devices, instead of requiring a copy of Unix micropython.
Aivar Annamaa
https://thonny.org
https://thonny.org
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: PyPi and upip
There is an alternative micropip which runs on CPython and downloads to your PC. It has been tested on Linux, Windows and OSX.aivarannamaa wrote: ↑Tue Jul 28, 2020 5:56 amIt would be also nice if pip was enhanced to support micropython packages. Then you could use simple `pip download` for preparing a lib directory for non-networked devices, instead of requiring a copy of Unix micropython.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: PyPi and upip
Thanks, Peter! I already found micropip and it looks like a good solution!
Aivar Annamaa
https://thonny.org
https://thonny.org
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Please note!
Be aware that upip (and micropip) have a special feature: they access a specific MicroPython repository controlled by the maintainers. If a package is found there, it is loaded in preference to the one on PyPi. This is done to ensure compatibility: some (purportedly standard) library modules on PyPi require special forks of MicroPython.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.