pycharm

Any way to force PyCharm to refresh its understanding of a virtual environment, other than quit & restart?


I'm using PyCharm 3.4.1, and I've configured it to use an interpreter from a Python 3.4 venv.

However, when I do an external "pip install" of additional packages to the venv, PyCharm's code analysis still highlights references as being unsatisfied. (Most recently, after installing a package as editable source.)

Quitting & restarting resolves the issue. But is there any other way to kick/refresh PyCharm's idea of what's available to the venv interpreter?


Solution

  • Help > Find Action:

    ā†’ Rescan Available Python Modules and Packages

    Available from PyCharm 2020.1.2 (YouTrack Issue)