为了账号安全,请及时绑定邮箱和手机立即绑定

python setup.py Egg_info 检查日志以获取完整的命令输出 为什么要安装

python setup.py Egg_info 检查日志以获取完整的命令输出 为什么要安装

莫回无 2023-10-11 15:59:02
我尝试在 Windows 终端中运行pip install instagram-scraper,pip install igramscraper但出现此错误:错误:命令错误,退出状态 1:python setup.py Egg_info 检查日志以获取完整的命令输出。错误全文是:Using cached instagram-scraper-1.9.0.tar.gz (35 kB)    ERROR: Command errored out with exit status 1:     command: 'c:\users\a\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\a\\AppData\\Local\\Temp\\pip-install-imeolj6n\\instagram-scraper\\setup.py'"'"'; file='"'"'C:\\Users\\a\\AppData\\Local\\Temp\\pip-install-imeolj6n\\instagram-scraper\\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\a\AppData\Local\Temp\pip-pip-egg-info-pvp8sv0c'         cwd: C:\Users\a\AppData\Local\Temp\pip-install-imeolj6n\instagram-scraper\    Complete output (28 lines):    Traceback (most recent call last):      File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\pkg_resources\__init__.py", line 2470, in resolve        return functools.reduce(getattr, self.attrs, module)    AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'    During handling of the above exception, another exception occurred:我使用的是 python3,它已在环境变量中设置为路径。
查看完整描述

1 回答

?
蝴蝶刀刀

TA贡献1801条经验 获得超8个赞

我找不到这个问题的确切解决方案。我只是使用虚拟环境来安装这个特殊项目的模块来消除此类冲突。



查看完整回答
反对 回复 2023-10-11
  • 1 回答
  • 0 关注
  • 39 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信