Python module/package detected as XHTML

Main symptom: autocomplete not working at all, even though package is installed, the correct virtual environment is chosen for the project interpreter, caches invalidated and IDE restarted, but no cigar.

Comparison of tooltip outputs from two imported modules/packages, first a module from the Python standard library:

However, numpy is recognised as XHTML:

How to make Pycharm recognise numpy as a proper Python module/package?

Please sign in to leave a comment.