在Pycharm中尝试安装Scrapy时,一直出现错误:Command "python setup.py egg_info" failed with error code 1。

27 浏览
0 Comments

在Pycharm中尝试安装Scrapy时,一直出现错误:Command "python setup.py egg_info" failed with error code 1。

这个问题已经有了答案:

Pip Install Twisted Error 1

我正试图在PyCharm项目中安装Scrapy,但一直收到上面的错误消息。

我已经尝试通过PyCharm的设置和终端更新pip和setuptools,重新启动PyCharm和计算机。

Complete output from command python setup.py egg_info:
    Download error on https://pypi.org/simple/incremental/: [WinError 10054] An existing connection was forcibly closed by the remote host -- Some packages may not be found!
    Couldn't find index page for 'incremental' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [WinError 10054] An existing connection was forcibly closed by the remote host -- Some packages may not be found!
    No local packages or working download links found for incremental>=16.10.1
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\kdeem\AppData\Local\Temp\pip-install-_380qxbx\Twisted\setup.py", line 20, in 
        setuptools.setup(**_setup["getSetupArgs"]())
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\setuptools\__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\setuptools\dist.py", line 717, in fetch_build_eggs
        replace_conflicting=True,
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\pkg_resources\__init__.py", line 782, in resolve
        replace_conflicting=replace_conflicting
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
        return installer(requirement)
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\setuptools\dist.py", line 784, in fetch_build_egg
        return cmd.easy_install(req)
      File "C:\Users\kdeem\.PyCharmCE2019.1\Timesheets\lib\site-packages\setuptools\command\easy_install.py", line 673, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')```

admin 更改状态以发布 2023年5月21日
0
0 Comments

我在这里发布一个链接,链接到另一个问题的答案,解决了这个问题。结果我需要先更新增量。

答案

0