anaconda those things
I like to use anaconda, so I will write a blog post about it. Thank you
Go directly to the topic
installation
It is recommended to download the official website address and Qinghua
official website
* Turn the bottom, choose according to demand
Tsinghua download
* by the system, select different versions
* Follow the installation package given steps
Configuration
windows directly open anaconda prompt
linux please refer to more information
mac:
run
cd ~
vim .bash_profile
Display
add at the end:
conda activate
Get
now, restart the command line
following screen appears
Command explanation
Package command
conda install <pkg_name>
This is one of the most commonly used commands.
He will download the package named <pkg_name>, and it can be found using other pip tools
conda uninstall <pkg_name>
This is one of the most commonly used commands.
It will uninstall the package named <pkg_name>, and can uninstall the packages downloaded by other pip tools, and can synchronize to other tools
conda list
This is one of the most commonly used commands.
It will list all packages ( including those downloaded by other tools )
conda search <pkg_name>
This is one of the most commonly used commands.
He will search all packages for inclusion and related package names ( within the scope of full mirroring )
conda update <pkg_name>
This is one of the most commonly used commands.
It will upgrade the package named <pkg_name> and synchronize it to other pip tools
Environmental commands
conda create --name <env_name> python=<version>
Create an environment named <env_name> with its own <version> version of python
deactivate <env_name>
Exit the environment named <env_name>
activate <env_name>
Enter the environment named <env_name>
conda remove -n <env_name> --all
conda env remove -n <env_name>
Remove the environment named <env_name> and its packages
Other commands
conda config --show
He will display the configuration of anaconda
conda config --add <key> <value>
He will add a <value> item in the configuration <key>
conda config --remove <key> <value>
He will delete the <value> item in the configuration <key>
conda activate
Start anaconda
conda deactivate
Exit anaconda
Copyright Notice
The copyright belongs to the author of this article's reference and himself, please declare the source (if you are too lazy to write it, you don't see it, don't pursue it, you just know it)
Author
hit-road
Bye, get out of class is over!
Hit-road will be updated from time to time, see or leave!