Is it possible to install module and run them on lopy4?



  • I couldn't use the discord module when i install it through the terminal on regular python, was unsure how i could install the module on Pymakr?



  • Hi,
    In that sense, micropython is somewhat different to the actual python. While most modules are easily ported to micropython, we cant really use pip. Instead, you will need to load the python files in a lib folder inside your project. Now Im not sure what the discord module actually does, but it seems to be a wrapper for the discord API. You might need to do some porting to make it compatible with micropython as well (we do not have all the nice features from python unfortunately). Also watch the size, as we have limited flash memory and ram available.

    Best,
    Gijs


Log in to reply
 

Pycom on Twitter