pycharm创建项目的时候,一定勾选inhert global site-packages。不然系统的库就没法用了。
打开Project Interpreters页面:文件(file)——>设置(setting)——>项目(Project)——>Project Interpreters
配置新环境: