How to use Poetry with PyCharm? All imports show warning No module named....
#5119
-
PyCharm 2021.3.1 ProblemWhen I import any package in PyCharm, I see QuestionHow to support packages imports, auto-completion? How to view packages source code? WorkaroundI have to install all packages via "Pip" in parallel to hide PyCharm import warnings |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Pycharm 2021.3 now offers Poetry support. Is that the version of Pycharm you are using? |
Beta Was this translation helpful? Give feedback.
-
|
Did you select the poetry environment as interpreter? After I did that, everything works as expected. |
Beta Was this translation helpful? Give feedback.
-
Solution:
Install PyCharm again, add the project again, add an interpreter again. Now imports are not red. Now I can autocomplete imports. |
Beta Was this translation helpful? Give feedback.
Solution:
Install PyCharm again, add the project again, add an interpreter again.
Now imports are not red. Now I can autocomplete imports.