
以下错误发生在拷了别的项目在自己电脑上运行的出错信息:
意思缺少 matplotlib库, 可以点击Python -> preference -> Project Interpreter

下面的箭头是添加缺少的第三方库 上面的箭头选择对应的Project Interpreter.
在File -> default setting 里也有个project interpreter选项。在最右边的箭头,选择对应项目的interpreter.

打开的项目多的话 会有多个project interpreter

在edit configurations…下面的 还有个python interpreter,也要选对。

报错信息:
Could not install packages due to an EnvironmentError:
Consider using the `--user` option or check the permissions.例如:pip install average 提示的报错如下:

用上面绿框的方法重装可以解决问题。