How to solve unresolved references in pycharm

If PyCharm displays unresolved references, it may be because you are using uninstalled libraries or modules in your code, or because PyCharm has not configured the interpreter correctly.

To resolve this issue, you can try the following steps:

  1. Install missing libraries or modules. If you use uninstalled libraries or modules in your code, install pipthem using the command.

  2. Configure the interpreter. If PyCharm does not configure the interpreter correctly, please find the "Interpreter" option in PyCharm's settings and select the interpreter you want to use (such as Python 3).

  3. Use the "reimport" function. Find the "File Watchers" option in PyCharm's settings, then find "TypeScript" and select "Reimport".

Guess you like

Origin blog.csdn.net/weixin_42576410/article/details/129455163