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

一笑奈何 提交于 2019-11-27 14:51:56

问题


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.



来源:https://stackoverflow.com/questions/38598880/how-do-i-install-modules-on-qpython3-android-port-of-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!