Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 617
Enclo Creations Avatar asked Jul 26 '16 20:07

Enclo Creations


3 Answers

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'])
like image 119
sillyMunky Avatar answered Oct 06 '22 19:10

sillyMunky


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.

like image 33
Mohan B E Avatar answered Oct 06 '22 19:10

Mohan B E


Step1: Install QPython.

Step2: Install AIPY for QPython.

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

like image 1
Aashish Avatar answered Oct 06 '22 20:10

Aashish