我正试图在PyCharm中为一个项目安装Scrapy,但不断收到上面的错误消息。
我尝试过更新pip和setuptools(通过Pycharm的设置和终端),重新启动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 "<string>", line 1, in <module>
File "C:\Users\kdeem\AppData\Local\Temp\pip-install-_380qxbx\Twisted\setup.py", line 20, in <module>
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')```
我在这里发布了一个链接来回答另一个解决这个问题的问题。原来我需要先更新增量。
答案