我如何在qpython3(python的Android端口)上安装模块 [英] How do I install modules on qpython3 (Android port of python)

查看:428
本文介绍了我如何在qpython3(python的Android端口)上安装模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在其中找到了这个很棒的模块,并将其下载为zip文件.提取zip文件后,我将两个模块放在文件文件夹中的文件中(设置和主模块),其中包括我需要运行的一个额外的自述文件.我尝试安装安装文件,但由于控制台找不到它而无法安装.因此,我进行了一些研究,并尝试使用pip进行安装,但这没有用.因此,我想知道是否有人可以通过pip手动安装它(请记住,必须安装setup.py文件才能使主模块正常工作).

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).

谢谢!

推荐答案

我发现最干净,最简单的方法是在QPython控制台中使用pip,如

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

这篇关于我如何在qpython3(python的Android端口)上安装模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆