1, first install anaconda in the system. You can open the command line to enter conda-v to verify the installation and the current Conda version.
2, Conda commonly used commands.
1) Conda list to see which packages are installed.
2) Conda env list or Conda info-e or Conda info--envs to see which virtual environments are currently present
3) Conda update Conda Check for current Conda
3. Create a Python virtual environment.
Use the Conda create-n your_env_name python=x.x (2.7, 3.6, etc.) command to create a Python version of x.x and a virtual environment named Your_env_name. The Your_env_name file can be found under the Anaconda installation directory Envs file.
4. Use a virtual environment that activates (or toggles between different Python versions).
Open the command line input Python--version to check the current Python version.
Use the following command to activate your virtual environment (the version of Python will change).
Linux: Source Activate Your_env_name(Virtual environment name)
Windows: Activate your_env_name(Virtual environment name)
This is again using Python--version to check if the current Python version is desired.
5. Install additional packages in the virtual environment.
Install the package to your_env_name using the command Conda install-n your_env_name
6. Close the virtual environment (that is, exit from the current environment to return to the default Python version in the Path environment).
Use the following command.
Linux: Source Deactivate
Windows: Deactivate
7. Delete the virtual environment.
You can delete it by using the command Conda remove-n your_env_name (Virtual environment name)--all.
8. Delete a package in the environment.
Use the command Conda remove--name your_env_name package_name.
Anaconda using Conda common commands