File下面的Setting设定---->
Project Interperter下面的Project Interpreter----->
点击右面的+号
搜索需要的包添加就行了
来源: http://www.bubuko.com/infodetail-1864976.html