在PyCharm中打开别人的项目源码,出现Unresolved Reference问题。
1. 进入PyCharm->Preferences->Build,Excution,Deployment->Console->Python Console勾选上Add source roots to PYTHONPATH
;
2. 进入PyCharm->Preferences->Project->Project Structure,通过选中某一目录右键添加sources
;
3. 点击Apply和OK即可.