The same applies to import a new project can not run after someone else's problem
One reason:
pycharm not set the system parser
Solution one:
Open pycharm-> File-> Settings-> Project Interpreter-> Set python path (system python)
Cause two:
Do not create a new configuration
Solution two:
Open pycharm-> Run-> edit configuration -> [left corner] "+" sign (add new configuration) -> python
Or simply violent methods:
Right-click the run 'test'
Shortcut key ctrl + shift + F10
Thanks: https://www.cnblogs.com/maggie-zhang/p/11045759.html