猿问

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

我尝试在 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,它已在环境变量中设置为路径。


莫回无
浏览 67回答 1
1回答

蝴蝶刀刀

我找不到这个问题的确切解决方案。我只是使用虚拟环境来安装这个特殊项目的模块来消除此类冲突。
随时随地看视频慕课网APP

相关分类

Python
我要回答