TensorFlow安装与卸载(anaconda版本)

TensorFlow安装与卸载(anaconda版本)

anaconda可以方便的进行虚拟环境的配置和搭建,通常我们可以选择pip install 或者 conda install进行包的下载安装,这里小姐anaconda安装包步骤:
1、anaconda search -t conda tensorflow
查找可用的tensorflow源,该命令运行后终端会输出所有可用的源

2、anaconda show name
这里name是1、中输出源的tensorflow name栏的名称,show命令会在终端输出该源具体的信息和下载需要的指令
如:

conda install --channel https://conda.anacoda.org/HCC tensorflow-gpu=1.6

1.6为版本号,可根据自身需求设定。

指定包的卸载步骤:
1、conda list/pip list查看环境内安装包信息
2、pip uninstall ‘name’, name是指定包的名称
例如:

pip uninstall tensorflow-gpu=1.6

猜你喜欢

转载自blog.csdn.net/qq_34606546/article/details/86538508