1. Problem description:
2. Solution:
1.依次选择 文件 -> 设置 -> 项目 -> Python 解释器,出现如下界面:
2. Click the small gear on the right side of the python interpreter and select Show All :
3. In the pop-up window, it is found that there are multiple interpreters connected to the same server, which is the reason for the error . Clear the interpreter that is not related to the current running project (select and click the minus sign above), and keep one, the result is shown in the following figure:
NOTE: Just clear servers starting with the "Remote Python" prefix