輸入第一行代碼:import logging;logging.basicConfig(level==logging.INFO)python
提示:this inspection detects names that should resolved but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance itemsapp
在這裏找到答案:http://stackoverflow.com/questions/27422248/error-adding-import-lettuce-on-pycharmthis
this inspection detects names that should resolved but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance itemsspa
1.press Ctrl+Alt+s to open the settingsblog
2.on the left column, select Project Interpreterpycharm
3.on the top right there is a list of python binaries found on your system,pick the right oneit
4.eventually click the + button to install additional python modulesio
5.validateevent
Just in case you are not able to add an other module (that happened to me as well) you can change the project interpreter. class