I am concerned with the situations in which the PyCharm editor is not intelligently recognizing the Python libraries (packages) in use, or not displaying the related documentation.
I believe that there is a hugely important configuration step that I am missing across all my projects.
For example, I am working on a project that contains both a Python virtual environment generated from the requirements.txt file in the .venv folder and, the virtual environment in the venv folder that the PyCharm itself has created.
The project is able to run, although I do need to add a PYTHONPATH variable to include a project root.
When I enter: import json, below that line I can see the list of json's methods in a popup window and other things available by adding a dot . after the keyword json.
On the other hand, if I add:
does not present me with any automatic completions, as if this keyword is completely unknown.
In general, I seem to be missing a namespace for many Python libraries.
What should I configure in PyCharm to get the complete code coverage with automatic completion, documentation, and such?