【问题标题】:Unable to download InstaPy python module via pip install无法通过 pip install 下载 InstaPy python 模块
【发布时间】:2020-03-15 12:54:55
【问题描述】:

尝试安装 InstaPy python 模块时出现此错误:


正在下载https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/ googleapis-common-protos-1.6.0.tar.gz 错误:命令出错,退出状态为 1: 命令:'C:\Users\Seyi\Python\Python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Seyi\AppData\Local\Temp\pip-install-i7zyc4ej \googleapis-common-protos\setup.py'"'"'; 文件='"'"'C:\Users\Seyi\AppData\Local\Temp\ pip-install-i7zyc4ej\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\Seyi\AppData\Local\Temp\pip-install-i7zyc4ej\googleapis-common-protos\pip-egg-info' cwd: C:\Users\Seyi\AppData\Local\Temp\pip-install-i7zyc4ej\googleapis-common-protos\ 完整输出(21 行): 回溯(最近一次通话最后): 文件“”,第 1 行,在 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\setuptools__init__.py”,第 10 行,在 从 setuptools.extern.six.moves 导入过滤器、过滤器假、映射 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\setuptools\extern__init__.py”,第 1 行,在 从 pkg_resources.extern 导入 VendorImporter 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 3017 行,在 @_call_aside _call_aside 中的文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 3003 行 f(*args, **kwargs) _initialize_master_working_set 中的文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 3045 行 dist.activate(替换=假) 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 2577 行,激活 声明命名空间(pkg) 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 2151 行,在 declare_namespace _handle_ns(packageName, path_item) 文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 2091 行,在 _handle_ns _rebuild_mod_path(路径,包名,模块) _rebuild_mod_path 中的文件“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 2120 行 orig_path.sort(key=position_in_sys_path) AttributeError:“_NamespacePath”对象没有属性“排序” -------------------------------------- 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。

【问题讨论】:

    标签: python python-3.x instagram


    【解决方案1】:

    请提及您正在使用的命令。但是,我建议您更新 pip,并确保在适用的情况下使用 pip3。

    【讨论】:

    • 我输入了:python -m pip install instapy
    【解决方案2】:

    我的 setuptools 似乎不是最新的,所以我不得不通过 pip 升级它。

    使用的命令行:python -m pip install --upgrade setuptools (你可能不需要 python 部分)

    完整解释here

    【讨论】:

      猜你喜欢
      • 2018-08-14
      • 2012-09-06
      • 2015-05-06
      • 1970-01-01
      • 1970-01-01
      • 2017-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多