anaconda+tensorflow配置教程

下载安装anaconda

设置环境变量

创建虚拟环境  tensorbase

conda create --name TF24  python=3.8

查看已创建环境

conda info --env

conda env list

切换到指定的虚拟环境

conda activate tensorbase

删除虚拟环境

conda remove -n 虚拟环境名  --all

查看版本

conda -V

conda --version

查看python版本

python -V

查看已安装的包

conda list

删除指定的包 requests

conda remove requests

更改安装包下载位置为清华大学的镜像网站

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

conda config --set show_channel_urls yes

清华的镜像关闭了anconda服务,所以无法创建虚拟目录,解决办法恢复默认的配置网站:

conda config --remove-key channels

安装tensorflow

pip install tensorflow

由于多次安装anconda,导致jupyter启动时出现问题,因此考虑卸载jupyter后再重新安装

conda uninstall jupyter

生成jupyter配置文件命令

jupyter qtconsole --generate-config

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值