I have tried to build a new PyCharm project by poetry environment, while setting up it showed
and cannot setup the interpreter. Have anyone got the similar problem before and know how to solve this error?
Update
I have upgraded the PyCharm version to PyCharm Professional 2022.1.1 and the problem still remain.
Alright, I have fixed this problem.
Below is my debug steps, hope it can help those who are struggling in the same situation:
PyCharm team
with no responcepoetry env info
and it showed that the local virtualenv
is NA
poetry env use $(which python)
, yet it returned Skipping virtualenv creation, as specified in config file
and this answer gave me a hint.poetry config --list
and it showed that virtualenvs.create = false
virtualenv
creation by the command poetry config virtualenvs.create true
PyCharm IDE
and tried to add the interpreter again and it WORKED!!I am not sure if the command poetry config virtualenvs.create true
is permant or not.