2_PyCharm 2019导入python第三方库

1)  File→ Settings→ 找到Project Interpreter→ 点击“+”进入操做界面,以下图所示:python

 

2)  在安装库以前,可选择性添加国内镜像源,点击Mange Repositories,以下所示:blog

 

3)  在Mange Repositories中,“+”添加、“-”删除,以下所示:get

 

默认:https://pypi.python.org/simple/it

豆瓣:http://pypi.douban.com/simple/搜索

阿里: http://mirrors.aliyun.com/pypi/simple/numpy

清华: https://pypi.tuna.tsinghua.edu.cn/simple/im

中科大:https://pypi.mirrors.ustc.edu.cn/simple/ db

4)  在搜索框中输入库名,如numpy,选中需安装的库,而后点击Install Package,以下图所示:img

 

5)  等待安装完成,第三方库将加入在Project Interpreter列表,以下所示:e2e

相关文章
相关标签/搜索