pythonmoduleqpythonqpython3

How do I install modules on qpython3 (Android port of python)


I found this great module on within and downloaded it as a zip file. Once I extracted the zip file, i put the two modules inside the file(setup and the main one) on the module folder including an extra read me file I needed to run. I tried installing the setup file but I couldn't install it because the console couldn't find it. So I did some research and I tried using pip to install it as well, but that didn't work. So I was wondering if any of you could give me the steps to install it manually and with pip (keep in mind that the setup.py file needs to be installed in order for the main module to work).

Thanks!


Solution

  • The cleanest and simplest way I have found is to use pip from within QPython console as in This Answer

    import pip
    pip.main(['install', 'networkx'])