File-Settingssettings-project-python interpreter-设置小齿轮设置小齿轮-Show All添加按钮-打开添加解释器页面-建议选择【Existing Environment】,找到自己的Python路径,选择Python.exe,勾选make avaliable to all projects(将该Python环境应用到所有的项目)-OK