PyCharm: updating the virtual environment for a project

Problem

I have several projects in PyCharm, each with its own virtual environment.

Quite often, I add packages to these virtual environments using the CLI, mainly with python setup.py develop from another local package.

A new package will appear in Preferences -> Project -> Project Interpreter , and calls for newly installed packages are launched, but the import still looks erroneous, which infuriates me:

enter image description here

What i tried

  • Changing the virtual environment to something other than switching, in the hope that it will reboot. Does not work.
  • Restart PyCharm. It works, but it’s pretty slow, so I don’t think it is a solution.

How to update the virtual environment

+5
source share

Source: https://habr.com/ru/post/1257773/


All Articles