How do I install modules on qpython3 (Android port

2020-02-09 03:59发布

问题:

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!

回答1:

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'])


回答2:

Extract the zip file to the site-packages folder. Find the qpyplus folder in that Lib/python3.2/site-packages extract here that's it.Now you can directly use your module from REPL terminal by importing it.



回答3:

Step1: Install QPython.

Step2: Install AIPY for QPython.

Step3: Then go to QPython-->QPYPI-->AIPY and install from there Numpy, SciPy, Matplotlib, openCV etc.