当前位置:网站首页>Basic use of Anaconda
Basic use of Anaconda
2022-07-18 14:15:00 【warm...】
Objective record
- One 、 Basic use
- 1.1 Create an environment
- 1.2 View environment information
- 1.3 Activate the environment
- 1.4 Install environment package
- 1.5 Check the packages installed in the environment
- 1.6 Exit the current environment
- 1.7 Delete the current environment
- 1.8 see conda edition
- 1.9 View download source
- 1.10 Modify download source
- 1.11 Delete download source
One 、 Basic use
1.1 Create an environment
1.1.1 Basic creation
grammar :
conda create -n Environment name
1.1.2 Create assignment Python Version environment
grammar :
conda create -n Environment name python=3.7
Create an environment , Name the environment you want
1.2 View environment information
conda info --envs
(base) by conda Default environment information , The default is base Environmental Science
yolo5 Self created conda Environmental Science , Is to perform 1.1 Results of command
(base) The environment is conda Default settings , Of course, it can also be closed , Execute the following command to close
conda config --set auto_activate_base False
source ~/.bashrc
Recover and execute the following command
conda config --set auto_activate_base True
source ~/.bashrc
Example :
1.3 Activate the environment
conda activate Environment name
After activating the environment , Before the path base It will be converted to the name of the environment you want to activate , As shown in figure 2
Example :

1.4 Install environment package
After entering the environment you created, you can install the packages you need . When you from github On clone The following projects include requirements.txt when , You can also directly install all packages in this file .
pip install package
perhaps pip install package -i https://pypi.tuna.tsinghua.edu.cn/simple( Tsinghua mirror )
perhaps pip install package -i https://pypi.doubanio.com/simple/ ( Douban mirror image )
perhaps pip install -r requirements.txt( install requirements.txt The package in the file )
package It refers to the bag you want to press
1.5 Check the packages installed in the environment
pip list
This command displays the packages installed in your current environment
1.6 Exit the current environment
conda deactivate
This command is to exit the current environment , After execution, you can see that the environment name you created above has been removed 
1.7 Delete the current environment
conda remove -n Environment name --all
1.8 see conda edition
conda --version

1.9 View download source
conda config --show-sources
1.10 Modify download source
# Tsinghua download source
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# Image source of CUHK
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
# Douban download source
conda config --add channels http://pypi.douban.com/simple
# After adding the download source , Set the channel address when searching
conda config --set show_channel_urls yes
1.11 Delete download source
conda config --remove channels Download source address to delete
边栏推荐
- T100开发全新双档程序详细步骤
- [JMeter] JMeter sets the default language as Chinese
- 【AI芯片CAISA】
- Quarkus practice 2: develop rest ful services to realize simple curd functions
- Binary search tree BST
- MySQL的DDL(数据定义语言)
- 8. A network topology is shown in the figure. Router R1 connects LAN 1 and LAN 2 through interfaces E1 and E2, router R2 through interface l0, and domain name server and Internet through router R2. Th
- College personnel management system based on jsp+servlet
- 【Atlas快速入门】
- Atcoder ABC 232 b~e problem solution
猜你喜欢

单自由度系统的随机振动计算与仿真验证
![[brand special session] breakthrough across x, new opportunities for audio and video cohesion](/img/4f/632ce4b2cd49b9a3f25a0d63f78d3c.jpg)
[brand special session] breakthrough across x, new opportunities for audio and video cohesion

marginalization
![[the most complete and detailed] seven distributed global ID generation strategies](/img/ac/e16b424e00a78341344e6f7a590614.png)
[the most complete and detailed] seven distributed global ID generation strategies

Shuttle simulated rocket launch animation

marginalization

XML file delete comments

Wechat applet training | Chinese dictation tool based on cloud database

合宙Air820ug升级固件要点

关系图/族谱
随机推荐
二叉树的广度遍历
University epidemic prevention and control system based on jsp+servlet
Basic interview questions
ES2022 Array. at( )
ES2022 Array.at( )
160_ Skills_ Power Bi new function - calculate working days
DOM operation of JS -- operation document tree
Docker installs redis cluster
11. 盛最多水的容器
一条龙蛇形排序(我第一道笔试题)
Interview problem: how to close an order without using a scheduled task?
PMP practice once a day | don't get lost in the exam -7.15
$attrs is readonly $listeners is readonly error reporting solution
web一些实用的网址
MySQL的DML(数据操纵语言)
二叉树的深度遍历
CI (continuous integration), CD (continuous deployment)
Two low-cost ways to attract users with integral check-in
【深度强化学习-笔记 02】
Diagram / genealogy