Pycharm created interpreter but not showing up and unable to use

This appears to be a consistently reproducible bug. For example, try creating a project named test_name. When creating the new project in PyCharm, enter both the folder path and project name as test_name, such as the project name test_name and path C:\code\repository-python\test_name.


 

In this case, the actual code will be stored in C:\code\repository-python\test_name\test_name (due to an implicit subfolder with the project name). At the time, I didn't realize the folder name was duplicated, so I started coding and introduced a virtual environment at C:\code\repository-python\test_name\test_name.


 

After noticing the path duplication, I removed one test_name from the project path, but then PyCharm's interpreter stopped working. I tried the following:


 

  1. Completely deleted the project and re-clone the code to right directory.
  2. Recreated the virtual environment.


 

In this scenario, PyCharm fails to correctly create or recognize the virtual environment regardless of the steps taken, and no relevant error prompts are displayed. The project seems to be broken forever, I asked an AI to solve this issue, but it seems that due to PyCharm's global cache being non-editable or lacking obvious editing locations, the project cannot run correctly at the path C:\code\repository-python\test_name regardless of the attempts.

0
1 comment

Hello!

In general, it is possible to configure Default project directory by going to Settings | Appearance & Behavior | System Settings.

According to the description, it looks like you set up the project directory as “C:\code\repository-python\test_name\” and named the project itself “test_name,” which is why the folder name was duplicated.

If “C:\code\repository-python\test_name\” is the existing project and you want to open it in PyCharm, you can do so by going to File | Open and navigating to “C:\code\repository-python\test_name\”.

As for the issue with recreating the project, please create YouTrack ticket and attach the logs archive, which can be found under Help | Collect Logs and Diagnostic Data. Also, please provide a screencast/screenhsot demonstrating how a project is created and the incorrect behavior you're experiencing.

0

Please sign in to leave a comment.