pip list出现问题,更新版本又出现Cache entry deserialization failed, entry ignored如何解决

用conda 安装环境时
pip list 显示如下问题:正在使用pip9.0.1,需要更新pip版本

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

You are using pip version 9.0.1, however version 22.0.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

在这里插入图片描述
解决方法:按照黄色提示更新pip的版本
python -m pip install --upgrade pip
然而出现如下问题:
在这里插入图片描述
解决办法:更改目标源
C:\Users\Administrator\AppData\Roaming\pip
在此电脑中搜索%APPDATA%,找到pip文件夹下的pip.ini,没有就新建一个一个pip文件夹,文件夹下创建一个pip.ini文件

 [global]
timeout = 6000(这一行不超时可不要)
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

第三行为 目标源
可修改为:
阿里云 http://mirrors.aliyun.com/pypi/simple/
  中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
  豆瓣(douban) http://pypi.douban.com/simple/
  清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
  中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
自己尝试看哪个目标源能行
至此问题解决

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值