[Anaconda]windows 下,Anaconda命令总结

本文总结了Windows下Anaconda的conda源操作,包括查看、添加、删除和切换源,以及Anaconda、pip、Python和TensorFlow的版本管理。详细介绍了环境创建、迁移、克隆和管理,特别针对TensorFlow安装遇到的问题,如DLL加载失败,提出了解决方案,包括安装VC64位运行库和寻找支持SSE的TensorFlow版本。
摘要由CSDN通过智能技术生成


anconda官方文档

1.windows 下, conda源操作/增、减、重置、换源

  各版本Anaconda安装包集合。https://repo.anaconda.com/archive/

查看当前的源

conda config --show-source

添加指定的源

conda config --add channels 源名称或链接

  例如

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

删除指定源

conda config --remove channels 源名称或链接

恢复默认源

conda config --remove-key channels

清华源(TUNA)


conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --add channels https://pypi.tuna.tsinghua.edu.cn/simple/

豆瓣源

  豆瓣源的带宽对国内用比较友好,所以常用豆瓣源安装或更新第三方库


conda config --add channels  http://pypi.doubanio.com/simple/

pip install -i http://pypi.douban.com/simple/ tensorflow --trusted-host pypi.douban.com
pip install -i http://pypi.douban.com/simple/  --trusted-host pypi.douban.com  tensorflow
pip install -i http://pypi.douban.com/simple/ tensorflow-gpu==2.1.0 --trusted-host pypi.douban.com
pip install -i http://pypi.douban.com/simple/  --trusted-host pypi.douban.com  tensorflow-gpu==2.1.0 
pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值