Anaconda的详细配置过程(附图)

Anaconda是Python的一个科学计算发行库,内置了上千个Python经常会用到的库,包括Scikit-learn、Numpy、Scipy、Pandas等。

1.Anaconda下载

下载地址:https://www.anaconda.com/download/

官网下载速度很慢,慎用!建议通过国内镜像网站下载。
在这里插入图片描述

Anaconda 是跨平台的,有 Windows、macOS、Linux 版本,博主这里以 Windows 版本为例,点击那个 Windows 图标。

下载地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

2.新建环境
在这里插入图片描述

博主建了个TensorFlow的环境,为了后面搭建框架方便。
在这里插入图片描述

3.进入终端

输入:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy matplotlib numpy Pillow requests flask flask -restful tensorflow==2.0.0b1

4.安装TensorFlow

普通版:conda install tensorflow

GPU版:conda install tensorflow_gpu

5.安装插件

为了让Jupyter Notebook支持虚拟运行环境,需要在Anaconda李安装一个插件。

返回终端,用C-c退出当前正在运行的Jupyter Notebook Server,然后执行:conda install nb_conda

再重新开启Jupyter Notebook即可。

6.检测
在这里插入图片描述

运行Jupyter
在这里插入图片描述

成功!

原创文章 22 获赞 4 访问量 785

猜你喜欢

转载自blog.csdn.net/weixin_42224055/article/details/105773607