1.pycharm选择File—>settings—>project:pythonWork—>project structure—>Mark as:Sources—>+Add Content Root
2.选择python运行目录下的site-packages文件夹,然后点击apply,点击OK,即可解决问题
1.pycharm选择File—>settings—>project:pythonWork—>project structure—>Mark as:Sources—>+Add Content Root 2.选择python运行目录下的site-packages文件夹,然后点击apply,点击OK,即可解决问题
![]() |