我访问了python- for -android中的distribute.sh,然后输入命令“./Distribute.shnmap "kivy nmap”其中-m是python的第三方模块,但我收到了这个错误...
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))
请找个人来解决这个问题
发布于 2015-07-26 00:37:02
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安装)。如果您的模块不能以这种方式安装,您不能只将其放在需求行中。如果是这种情况,将模块复制到您的应用程序目录中,它将包含在应用程序中。
https://stackoverflow.com/questions/31628667
复制相似问题