Create your own virtual environment
conda create -n learn python=3
Switching environment:
activate learn
View all environments:
conda env list
Install third-party package:
conda install requests
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 package information for the current environment Conda env the create -f environment.yaml // create a new virtual environment configuration file
Connected pycharm
In the working environment we integrated development environment to code, it is recommended JB's pycharm, and pycharm can easily and anaconda combination of virtual environments
In the Setting => Project => Project Interpreter
modified Project Interpreter there, click the gear logo and then click Add Local is an environment you python.exe interpreter on the line