File--Settings--Project--Project Interpreter,点击右侧加号 在弹出页面的搜索框中输入要安装的库,选择后点击下方Install Package按钮完成安装,使用时直接import就行了