1.在file-setting-plugins中的parketplace中搜索python,并安装python community edition,重启

idea 搭建 pyhon 环境

2.在file-project structure中找到SDKs,点击图中"+",选择python SDK

idea 搭建 pyhon 环境

3.根据自己的python environment选择,我电脑安装的是aconda,选择existing environmen,找到本地aconda安装目录下的python.exe文件,

idea 搭建 pyhon 环境

4.点击ok即添加成功

idea 搭建 pyhon 环境

5.在file-project structure中找到project,将project SDK改为python即可

idea 搭建 pyhon 环境

相关文章: