2021-06-17

ImportError: cannot import name ‘InvalidSchemeCombination’ from ‘pip._internal.exceptions’

pip安装突然出问题!
在网上down demo,运行出错ModuleNotFoundError: No module named 'tensorboardX',查解决办法:pip install tensorboardX ,但一直报错ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions';接着找解决方法:

报错原因:pip文件损坏
解决方法可参考:https://blog.csdn.net/weixin_40040107/article/details/102581918
仍然报错的话需要:卸载anaconda,重装:
https://www.cnblogs.com/studylyn/p/7718472.html
https://blog.csdn.net/qq_40605139/article/details/95249601
anaconda重新安装:https://blog.csdn.net/qq_32649321/article/details/115554168?spm=1001.2014.3001.5501
原文链接:https://blog.csdn.net/qq_32649321/article/details/116719072
之后的一系列操作:
在这里插入图片描述
关键错误原因:

pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchaudio 0.8.1 requires torch==1.8.1, but you have torch 1.9.0 which is incompatible.

*pip的依赖解析程序当前没有考虑所有已安装的包。这种行为是以下依赖冲突的根源。
torchaudio 0.8.1要求torch
==1.8.1,但您的torch 1.9.0不兼容。*

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值