这个谷歌一下就知道了,stackoveflow上就有几个解决方案,试试哪个好使就可以了。
详情见http://*.com/questions/29030682/pycharm-4-0-5-hangs-on-scanning-files-to-index-background-task
和http://*.com/questions/24955896/pycharm-indexing-goes-into-infinite-loop
对于我的电脑来说,使用了
in pycharm, go to the "File" on the left top, then select "invalidate caches/restart...", and press "invalidate and restart".
这个方法~