解决方案:2步设置ok后,pyCharm又可以自动补全路径了 1. 设置文件路径为 source Root sourceRoot.png 2. Console中add source to PythonPath pyPath.png stackoverflow答案链接