栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

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

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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:UsersAdministratorAppDataRoamingpip
在此电脑中搜索%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/
自己尝试看哪个目标源能行
至此问题解决

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/875986.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号