其他分享
首页 > 其他分享> > u版图安装matplotlib时,报错ERROR: Could not install packages due to an EnvironmentError

u版图安装matplotlib时,报错ERROR: Could not install packages due to an EnvironmentError

作者:互联网

系统:u版图

报错
(环境问题)

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',))

解决方法
(使用sudo权限)

sudo pip3 install matplotlib

如果需要安装在虚拟环境,则找到虚拟环境bin目录下的pip3,使用虚拟环境的pip3安装

sudo ./pip3 install matplotlib
chent_某位 发布了37 篇原创文章 · 获赞 8 · 访问量 2639 私信 关注

标签:pip3,Could,sudo,matplotlib,虚拟环境,报错,install,EnvironmentError
来源: https://blog.csdn.net/qq_35526165/article/details/104173053