无法在 QPython 上安装 google-api-python-client
Cannot install google-api-python-client on QPython
我无法在 Android.
上通过 QPython 中的 pip 成功安装 google-api-python-client
下面是我的 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
看起来您在安装 pyasn1 时安装失败。
其实qpython提供了另一种安装pyasn1的方法。
点击首页的打包按钮,用qpypi安装pyasn1,然后运行再次pip install可能会解决
希望对您有所帮助! :)
我无法在 Android.
上通过 QPython 中的 pip 成功安装 google-api-python-client下面是我的 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
看起来您在安装 pyasn1 时安装失败。
其实qpython提供了另一种安装pyasn1的方法。
点击首页的打包按钮,用qpypi安装pyasn1,然后运行再次pip install可能会解决
希望对您有所帮助! :)