anaconda 环境配置

1 ,先去官网下载anaconda

2、下载好配置环境变量,windows编辑环境变量 ,点开pyth中

C:\ProgramData\miniconda3

C:\ProgramData\miniconda3\Scripts

C:\ProgramData\miniconda3\Library

3、在命令行中输入conda看有没有东西

4、配置清华园 先创建一个文件

conda config --set show_channel_urls yes

再在用户目录下找到这个文件.android

用记事本打开这个文件,删除以前的 ,复制粘贴清华园内容

channels:
  - defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

5、清华园配置好以后,用conda clean -i 清楚原先的东西

6、conda info -e 查看有哪些环境

7、编辑新的环境conda create --name tf python=3.8 名字为tf python 版本为3.8

8、conda info -e 查看环境

9、进入tf环境 :conda activate tf

10、安装tensorflow的方法

conda install tensorflow=2.3 cudatoolkit=10.1 cudnn 每个参数对应的版本可以去百度查

11.安装numpy的方法

conda install numpy

(切记 要进入对应的环境中去安装到哪个环境里)

12.推出conda环境 

conda deactivate

13 、删除环境

conda remove -n (名字) --all

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值