美文网首页
pip install报错Could not install p

pip install报错Could not install p

作者: 呆子鱼 | 来源:发表于2021-02-25 09:12 被阅读0次

1.现象

pip install过程中发生报错:

ERROR: Could not install packages due to an EnvironmentError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check',))

2.解决

修改镜像源

vi~/.pip/pip.conf

替换成以下内容:

[global]

index-url=https://pypi.doubanio.com/simple

保存退出,再次安装即可。

转载自https://blog.csdn.net/qq_38923792/article/details/112967191

相关文章

网友评论

      本文标题:pip install报错Could not install p

      本文链接:https://www.haomeiwen.com/subject/kkjyfltx.html