Clear Pycharm Remote Sources#

When developing using Docker containers with file mounts, Pycharm caches third party source files. You can view them in the Project view at External Libraries > < docker compose your app > > Remote Libraries.

To completely clear the cache

  1. stop Pycharm

  2. remove the so-called System Library (see below for copy&paste)

  3. start Pycharm

  4. wait for re-indexing

Linux

rm -r ~/.cache/JetBrains/PyCharm*

Mac

rm -r ~/Library/Caches/JetBrains/PyCharm*