Last Updated on 2021-01-30 by Clay
Introduction
If you got an error message like this when you build a new project:
Please specify a different SDK name
And when you exit to Interpreter configuration page, the top right will remind you this project have no any Interpreter.
Because when we build a new project in PyCharm IDE, it will create a virtual environment of Python, and we can find all package we installed in the venv folder.
Its advantage point is it can avoid to package collision.
But the problem is, if our Interpreter name is repeat, some error happened.
So I record a simple way to solve it.
Solution
Because our Interpreter of virtual environment is named repeat, so we can change its name to solve it.
"Ctrl+Alt+S" -> Project:xxx -> Project Interpreter.
Select the button.
Select All ...
You will see a list to list all Interpreter you built, remove the repeat one or rename it, and you will solve the "Please specify a different SDK name" error.
PyCharm 2023.3.4 RC2 (Professional Edition)
when I try see exist other SDK, my “show all” didnt work !! ther empmty list.