How to solve the problem that Project is missing in Pycharm’s Settings and Python Interpreter cannot be selected

1. The questions are as follows

  • Suddenly there is no python interpreter when opening the project, and the python interpreter cannot be reconfigured. Moreover, the entire folder is highlighted in yellow, as shown below, and it is useless to reinstall pycharm and even open File–>Setting–>Project. There is no Project option here. It is actually due to the .idea folder. Pycharm does not recognize that your code is a python project.
    Insert image description here

2. Solution

  • There are multiple solutions below, the first one I chose is fine
  • Solution 1: Still in the above folder, change .idea文件夹删掉 under the project to solve the problem, and then reopen the project, and there will be no problem
  • Solution 2: If deleting the .idea folder does not work, you can try changing the project name and opening it with pycharm again.
  • Solution three: Re-create a project and move your current files there again.
    Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43411585/article/details/132377048