首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在kivy/python-for-android中安装第三方模块时出错

在kivy/python-for-android中安装第三方模块时出错
EN

Stack Overflow用户
提问于 2015-07-26 00:29:51
回答 1查看 497关注 0票数 0

我访问了python- for -android中的distribute.sh,然后输入命令“./Distribute.shnmap "kivy nmap”其中-m是python的第三方模块,但我收到了这个错误...

代码语言:javascript
复制
Call postbuild_python
Call postbuild_sdl
Call postbuild_pygame
Call postbuild_pyjnius
Call postbuild_android
Call postbuild_kivy
Run pymodules install
We want to install: nmap
Check if /usr/local/bin/virtualenv is present
Check if a virtual environment already exists
Installing virtualenv
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip, wheel...done.
Create a requirement file for pure-python modules
Install pure-python modules via pip in venv
/root/.buildozer/android/platform/python-for-android/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
DEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache.
Collecting nmap (from -r requirements.txt (line 1))
/root/.buildozer/android/platform/python-for-android/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement nmap (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for nmap (from -r requirements.txt (line 1))

请找个人来解决这个问题

EN

回答 1

Stack Overflow用户

发布于 2015-07-26 00:37:02

代码语言:javascript
复制
Check if virtualenv is present
Tool virtualenv is missing

安装virtualenv。

编辑:由于您编辑了您的问题:

代码语言:javascript
复制
No matching distribution found for nmap (from -r requirements.txt (line 1))

在pypi上没有名为nmap的模块(因此可以使用pip安装)。如果您的模块不能以这种方式安装,您不能只将其放在需求行中。如果是这种情况,将模块复制到您的应用程序目录中,它将包含在应用程序中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31628667

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档