1.在打开File--Settings
2.选中Python interpreter,页面点击 + 按钮
3.搜索要添加的库,点击底部Install Package
5.成功后回到上个页面,点击 Apply