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

时间:2015-07-25 16:29:51

标签: android python kivy

我去了python-for-android中的distribute.sh然后键入然后我输入这个命令“./distribute.sh -m”kivy nmap“其中nmap是python的thired方模块,但是我收到了这个错误。 ..

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

请解决此人

1 个答案:

答案 0 :(得分:0)

Check if virtualenv is present
Tool virtualenv is missing

安装virtualenv。

编辑:自编辑问题以来:

No matching distribution found for nmap (from -r requirements.txt (line 1))

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