解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

Connecting to the console…PyCharm无法连接到解释器,或者No interpreter 的问题

出现如下显示
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题
或者报错
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

只需要点击file–>settings:

找到如下页面:
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

如果你发现你的页面interpreter里面没有这个绿色的小勾,那就要删掉原来的解释器重新导入anaconda解释器:
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

  1. 点击上图右边的倒三角,点击show all…
  1. 选中那个之前的anaconda的不带绿色小勾的解释器,点击右边那减号或者 “Alt+delet ”,将它删除
    解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

3.点击右边那个+号,按照如下设置,注意,Location最好在你要写代码的那个文件夹下。点击OK,新的解释器就生成了
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

  1. 如果显示你Enviroment location is directionary is not empty
    解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题
    再退出将相应文件路径下的venv删除就行了:
    解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题
  1. 之后就都显示正在创建环境
    解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题

6.然后选择刚刚创建的基于anaconda的解释器,点击ok,就可以运行了:
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题
解决Connecting to the console...PyCharm无法连接到解释器,或者No interpreter 的问题
干净的控制台