Anaconda manual

1. Mirror source configuration

Tsinghua source query website:
Tsinghua mirror source

1. Set the source

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

2、

conda config --set show_channel_urls yes

3. View source

conda config --show-sources

4、

conda config --remove channels defaults

5. Then enter conda config --show-sources to see if there are defaults under channels, if not, it will be ok.

2. Frequently asked questions about upgrading

1. Anaconda Navigator upgrade problem

Failed to upgrade directly in Navigator

1. Open the prompt

conda update anaconda-navigator

2. Reset

anaconda-navigator --reset

3. Upgrade the client

conda update anaconda-client

4. Upgrade package

conda update -f anaconda-client

2. Python upgrade problem

open the prompt

conda update conda

conda update anaconda

conda update python

3. Create a new environment

1. conda create -n environment name pip python= version number , create Tensorflow here as an example

conda create -n tensorflow python=3.7

Note: tensorflow2.0 needs to use python3.7
2. Import environment

conda info --envs

3. Activate the environment activate [environment name]

activate tensorflow

4. Install tensorflow (gpu version)

conda install tensorflow-gpu

5. Exit the environment

conda disabled

Guess you like

Origin blog.csdn.net/qq_43842886/article/details/111502736