更改Pycharm的设置
打开settings(CTRL + ALT + S)

查找框输入 interpreter
双击 project Interpreter

在 Project Interpreter选择编译器,点击apply,重新启动pycharm即可