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

查看:40
本文介绍了我如何在 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天全站免登陆