[Anaconda] the issue of the environment has not been activated conda

Foreword

 Installed in the win10 system Anaconda, and create a virtual environment, but did not understand why after switching environment to activate the virtual environment to be used.

conda commonly used commands

of an activate // switch to the base environment 
of an activate learn // switch to learn the environment 
Conda the Create -n learn python = 3  // Create a file called learn environment and specify the python version (the latest version) 3 
Conda env List // lists All environmental conda management 
conda List // lists all current package environments 
conda install requests installation package requests 
conda remove requests uninstall requets package 
conda the Remove -n learn --all // delete environment and learn all subordinate packages 
conda update requests update requests package 
Conda env export> environment.yaml // export the current environment package information 
Conda env-f environment.yaml the Create // create a new virtual environment configuration file

problem solved

Bloggers began have been using powershell, cmd can later use to activate switches and virtual environment properly. Do not you know why.

View the current environment

You can list all discoverable environments with `conda info --envs`.

conda info - envs 
or 
conda info -e

Results with * is the current use of the environment.

Finish

Guess you like

Origin www.cnblogs.com/happyamyhope/p/11547134.html
Recommended