上图(mac环境) :
一.设置项目的python版本
文件默认设置.
在弹出的画面(参照下图)中,从左上方的下拉框中选择python解释器的版本即可(建议:直接安装anaconda )。 这已经集成了很多第三方类库)。
二.添加第三方类库
在上图中,下面有编号按钮。 点击进入下图。
在搜索框中直接检索所需第三方类库即可(以tensorflow为例),找到后点击安装包即可
三.安装国内pip镜像
缺省情况下,与maven中央仓库一样,pip直接连接到国外官方网站下载第三方类库。 上图中的Install Package旁边是“Manage Repositories”按钮,您可以在其中添加国内镜像地址
典型的国内镜像地址列表如下。
AlibabaCloud (阿里巴巴云) http://mirrors.a liyun.com/pypi/simple中国科技大学https://pypi.mirrors.ustc.edu.cn/simple豆瓣(douban ) http://pypi.douban simple清华大学3359 pypi.tuna.Tsinghua.edu.cn/simple中国科学技术大学3358 pypi.mirrors.ustc.edstc
[global]
index-URL=https://pypi.tuna.Tsinghua.edu.cn/simple