conda command

【conda】
1.Create a new environment and install a package in it.
We will name the environment snowflakes and install the package BioPython

conda create --name snowflakes biopython

2.To use, or "activate" the new environment, type the following:

Windows: conda activate snowflakes

Linux and macOS: conda activate snowflakes

3.To see a list of all your environments, type:
conda info --envs

4.Change your current environment back to the default (base):
conda activate

5.delete an environment
conda remove -n snowflakes --all

【Managing Python】
1.Create a new environment named "snakes" that contains Python 3.5:
conda create --name snakes python=3.5

2.Activate the new environment:

Windows: activate snakes

Linux, macOS: source activate snakes

3.Verify which version of Python is in your current environment:
python --version


【Managin packages】
1.To find a package you have already installed, first activate the environment you want to search. Look above for the commands to activate your snakes environment.

2.Check to see if a package you have not installed named "beautifulsoup4" is available from the Anaconda repository (must be connected to the Internet):

conda search beautifulsoup4

Conda displays a list of all packages with that name on the Anaconda repository, so we know it is available.

3.Install this package into the current environment:

conda install beautifulsoup4

4.Check to see if the newly installed program is in this environment:

conda list

 

具体查看官网:https://conda.io/projects/conda/en/latest/user-guide/getting-started.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值