pip install报错Could not install packages due to an EnvironmentError

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容