Python 基础教程

Python 高级教程

Python 相关应用

Python 笔记

Python FAQ

original icon
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.knowledgedict.com/tutorial/python-install-pickle-error.html

pip install pickle 安装 pickle 时,报 ERROR: Could not find a version that satisfies the requirement pickle

Python 笔记 Python 笔记


如果用 pip3 install pickle 命令安装 pickle 时,会报错 ERROR: Could not find a version that satisfies the requirement pickle

报错信息

会报如下错误信息:

ERROR: Could not find a version that satisfies the requirement pickle (from versions: none)
ERROR: No matching distribution found for pickle

解决方式

可以说不是解决方式,而是阐述原因即可解决,那就是 python3 里将 pickle 招安,即把它纳入标准库,直接使用即可。

import pickle