安装scrapy报错

来源:2-1 scrapy的安装、和安装中遇到的问题

Buck_messic

2020-12-03 16:57:10

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

# 尝试过的解决思路和结果

# 粘贴全部相关代码,切记添加代码注释(请勿截图)

  ERROR: Command errored out with exit status 1:

     command: 'd:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-62q5jx3y\\twisted_38213aa48f3c41979ed3b7914ab55893\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-62q5jx3y\\twisted_38213aa48f3c41979ed3b7914ab55893\\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\Administrator\AppData\Local\Temp\pip-pip-egg-info-27nemsg8'

         cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-62q5jx3y\twisted_38213aa48f3c41979ed3b7914ab55893\

    Complete output (35 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-62q5jx3y\twisted_38213aa48f3c41979ed3b7914ab55893\setup.py", line 20, in <module>

        setuptools.setup(**_setup["getSetupArgs"]())

      File "d:\python\lib\site-packages\setuptools\__init__.py", line 144, in setup

        _install_setup_requires(attrs)

      File "d:\python\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires

        dist.fetch_build_eggs(dist.setup_requires)

      File "d:\python\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs

        resolved_dists = pkg_resources.working_set.resolve(

      File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve

        dist = best[req.key] = env.best_match(

      File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match

        return self.obtain(req, installer)

      File "d:\python\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain

        return installer(requirement)

      File "d:\python\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg

        return cmd.easy_install(req)

      File "d:\python\lib\site-packages\setuptools\command\easy_install.py", line 665, in easy_install

        dist = self.package_index.fetch_distribution(

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 655, in fetch_distribution

        dist = find(requirement)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 635, in find

        loc = self.download(dist.location, tmpdir)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 579, in download

        found = self._download_url(scheme.group(1), spec, tmpdir)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 824, in _download_url

        return self._attempt_download(url, filename)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 830, in _attempt_download

        headers = self._download_to(url, filename)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 753, in _download_to

        self.check_hash(checker, filename, tfp)

      File "d:\python\lib\site-packages\setuptools\package_index.py", line 520, in check_hash

        raise DistutilsError(

    distutils.errors.DistutilsError: sha256 validation failed for incremental-17.5.0-py2.py3-none-any.whl; possible download problem?

    ----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

​这里输入代码,可通过选择【代码语言】突出显示

写回答

1回答

时间,

2020-12-03

同学,你好,同学可以在网站下载incremental安装后再重新安装scrapy

网址:https://pypi.org/project/incremental/#files

http://img.mukewang.com/climg/5fc8b0ae093d48e200000000.jpg

在终端中进到所对应的环境和文件所在的路径中使用pip install xxx.whl安装即可

0

0 学习 · 1672 问题

查看课程