我无法在Android上通过QPython内的pip成功地安装。
下面是我的pip日志,给你这个问题的细节。
Downloading from URL https://pypi.python.org/packages/f7/83/377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/pyasn1-0.1.9.tar.gz#md5=f00a02a631d4016818659d1cc38d229a (from https://pypi.python.org/simple/pyasn1/)
Running setup.py egg_info for package pyasn1
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/storage/emulated/0/qpython/cache/build/pyasn1/setup.py", line 58, in <module>
doclines = [ x.strip() for x in __doc__.split('\n') if x ]
AttributeError: 'NoneType' object has no attribute 'split'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/storage/emulated/0/qpython/cache/build/pyasn1/setup.py", line 58, in <module>
doclines = [ x.strip() for x in __doc__.split('\n') if x ]
AttributeError: 'NoneType' object has no attribute 'split'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 980, in prepare_files
req_to_install.run_egg_info()
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 216, in run_egg_info
command_desc='python setup.py egg_info')
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1发布于 2017-02-25 09:51:04


看起来在安装pyasn1时安装失败了。
实际上,qpython提供了另一种安装pyasn1的方法。
单击主页上的package按钮,用qpypi安装pyasn1,然后再次运行可以解决这个问题。
希望能帮上忙!)
https://stackoverflow.com/questions/40817866
复制相似问题