how to install packages correctly(without upip,manually)

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
nodepythoner
Posts: 11
Joined: Sat Apr 20, 2019 8:44 am

how to install packages correctly(without upip,manually)

Post by nodepythoner » Thu May 09, 2019 8:21 am

I installed picoweb package to sd card. i just copyed files from github to sd card.
but i can access to this package only in directory where is my package
i want to make package global
also i found sdist_upip.py and setup.py files. what they are doing?
i think that i installed packages incorrectly, help!

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: how to install packages correctly(without upip,manually)

Post by jimmo » Thu May 09, 2019 10:17 am

I can't speak to picoweb or upip, but seeing as you asked about installing things manually: you can append additional paths to find modules to sys.path.

See https://docs.micropython.org/en/latest/ ... l#sys.path

nodepythoner
Posts: 11
Joined: Sat Apr 20, 2019 8:44 am

Re: how to install packages correctly(without upip,manually)

Post by nodepythoner » Thu May 09, 2019 12:50 pm

thank you, it works well
but i dont understand what sdist_upip.py and setup.py files are doing

Post Reply