1, download the installation package
URL: https://www.anaconda.com/download/#macos
2 after successful installation opening anaconde problems
1) Q: In the terminal input conda not recognize the command.
Check the environment variable:
sudo vi ~/.bash_profile
If the environment variable is not conda then to manually add,
export PATH="/users/anaconda/bin:$PATH"(这里填写自己的路径)
refresh environment variables:
source ~/.bash_profile
View conda list
3, the operation command environment
1. Review the environmental management of the entire command help:
conda env -h
2. Review the environment under the current system:
conda info -e
3. Create the environment:
conda create env_name
, env_name is the name of the environment, this command will create a new environment, location in Anaconda installation files / envs
Create a python version of the specified environment:
conda create env_name python=3.7
Activation (enter) an environment:
windows:activate env_name
mac:source activate env_name
Remove an environment: deactivate env_name
copy an environment: conda create new_env_name old_env_name
delete a setting:conda remove env_name
4, package management operation command
View installed packages: conda list
update packages: conda update xxx
the installation package: conda install xxx
Specifies the installation environment: conda install -n env_name xxx
installation anaconda release all packages: conda install anaconda
uninstall package:conda remove xxx
5. Management conda
Check the conda version: conda --version
Upgrade the current version of conda:conda update conda
6, modify the mirror
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
7, install pydicom
conda install pydicom --channel conda-forge