问题

利用pip install easygui命令直接安装
但是安装到最后却提示:
“Error:could not install packages due to an environmenterror…
Consider using the ‘–user’ option or check the permissions。”
如图:
Python | pip安装easygui
解决办法
改写为:
pip install --user easygui

安装结果为:
Python | pip安装easygui

同理,当安装其他安装包遇到类似的问题时,也可以如此解决。

相关文章: