错误:命令错误,退出状态为1:python setup.py egg_info

时间:2020-04-29 23:05:19

标签: python google-api pip installation gmail-api

我正在尝试安装google-api-python-client,并且不断收到此错误: ERROR: Command errored out with exit status 1: python setup.py egg_info

更具体地说,它是在收集“ googleapis-common-protos <2.0dev,> = 1.6.0”时发生的。关于如何解决此问题的任何提示,这是否发生在其他人身上?我拥有最新版本的python和pip

以下是完整的命令输出:

ERROR: Command errored out with exit status 1:
     command: 'c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ASTHO_~1\AppData\Local\Temp\pip-pip-egg-info-c2ymsdk9'
         cwd: C:\Users\ASTHO_~1\AppData\Local\Temp\pip-install-x0cydaaa\googleapis-common-protos\
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 12, in <module>
        from setuptools.extension import Extension
      File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\extension.py", line 7, in <module>
        from setuptools.dist import _get_unpatched
      File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\dist.py", line 16, in <module>
        import pkg_resources
      File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\pkg_resources.py", line 1479, in <module>
        register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

0 个答案:

没有答案