簡體   English   中英

無法通過 pip 安裝下載 InstaPy python 模塊

[英]Unable to download InstaPy python module via pip install

嘗試安裝 InstaPy python 模塊時出現此錯誤:


Downloading https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/ googleapis-common-protos-1.6.0.tar.gz ERROR: Command errored out with exit status 1: command: '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'"'"'; file ='"'"'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\ 完成 Z78E6221F6398F4CED6566 21 行):回溯(最近一次調用最后一次):文件“”,第 1 行,在文件“C:\Users\Seyi\Python\Python36\lib\site-packages\setuptools__init__.py”中,第 10 行,來自 setuptools .extern.six.moves 導入過濾器,filterfalse,map 文件“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_resour ces__init__.py",第 3017 行,在 @_call_aside 文件中 "C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py",第 3003 行,在 _call_aside f(*args, **kwargs) 文件中“C:\Users\Seyi\Python\Python36\lib\site-packages\pkg_resources__init__.py”,第 3045 行,_initialize_master_working_set dist.activate(replace=False) 文件“C:\Users\Seyi\Python\Python36\lib \site-packages\pkg_resources__init__.py",第 2577 行,在激活 declare_namespace(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(path, packageName, module) 文件“C:\Users\Seyi\ Python\Python36\lib\site-packages\pkg_resources__init__.py",第 2120 行,在 _rebuild_mod_path orig_path.sort(key=position_in_sys_path) AttributeError: '_NamespacePath' object has no attribute 'sort' --- ------------------------------------- 錯誤:命令出錯,退出狀態為 1:python 設置。 py egg_info 檢查日志以獲取完整命令 output。

請提及您正在使用的命令。 但是,我建議您更新 pip,並確保在適用時使用 pip3。

看來我的 setuptools 不是最新的,所以我不得不通過 pip 升級它。

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

完整的解釋在這里

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM