Anaconda 更新 Scrapy 出现的问题

Anaconda 更新 Scrapy 出现的问题

输入:pip install --force --upgrade scrapy
出现以下问题:

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

requests 2.19.1 requires idna<2.8,>=2.5, but you'll have idna 2.10 which is incompatible.
jupyterlab-server 1.0.0 requires jsonschema>=3.0.1, but you'll have jsonschema 2.6.0 which is incompatible.

共三个问题,依次解决:

  1. pip 改变了解决依赖冲突的方式
After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

在命令行后面加上--use-feature=2020-resolver
即:pip install --force --upgrade scrapy --use-feature=2020-resolver

  1. requests 与 idna 版本不匹配
requests 2.19.1 requires idna<2.8,>=2.5, but you'll have idna 2.10 which is incompatible.

即,requests的版本要求idna的在2.5到2.8之间,此时可以降低idna的版本,或者更新requests版本
pip install --upgrade requests

  1. jupyterlab-server 与 jsonschema 版本不匹配
jupyterlab-server 1.0.0 requires jsonschema>=3.0.1, but you'll have jsonschema 2.6.0 which is incompatible.

问题同上,解决方法为更新jsonschema
pip install --upgrade jsonschema

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值