in pycharm, go to the "File" on the left top, then select "invalidate caches/restart...", and press "invalidate and restart".