anaconda installation and use

1. Tsinghua mirror sites to download software https://mirrors.tuna.tsinghua.edu.cn/
2. Install,

3. Add the environment variable:
1)anaconda prompt:path
2) The display is pasted to the path path environment variables - the system variables
3) Verify: win + r, cmd input conda / python
4. In other sources:
  • windows down
Add Tsinghua source
Command line directly using the following command
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 displayed channel address conda config --set show_channel_urls yes when setting the search https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ #

Add USTC source
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/ conda config --set show_channel_urls yes

  • Under Linux
The above configuration file written in the ~ / .condarc in
vim ~/.condarc 1 channels: - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - defaults show_channel_urls: true
Creating the environment:
# 创建一个名为python27的环境,指定Python版本是2.7(不用管是2.7.x,conda会为我们自动寻找2.7.x中的最新版本) conda create --name python27 python=2.7

# To activate this environment, use # # $ conda activate python37 # # To deactivate an active environment, use # # $ conda deactivate
其余,同理
C:\Users\Administrator>conda info --e # conda environments: # base * D:\Anaconda3 python27 D:\Anaconda3\envs\python27 python37 D:\Anaconda3\envs\python37
spider汉化
在Preference->General->Advanced Setings->Language->语言
github找汉化包,
python main.py
即可,剩下编程是一样的

Guess you like

Origin www.cnblogs.com/shenl/p/python.html