anaconda安装软件包

管理包

1.查看在环境中安装的软件包和版本的列表

conda list

2.搜索包,检查一下我们想要的软件包是否可供conda安装(numpy)

conda search numpy

3.安装新软件包

conda install numpy

4.删除不用的包

conda remove numpy

5.对于使用conda install不可用的软件包安装时出现
这里写图片描述
需要在要从Anaconda.org下载到当前环境
使用show指令查看该包的详细情况

anaconda show conda-forge/bottleneck

若存在,则下载该软件包
这里写图片描述

conda install --channel https://conda.anaconda.org/pandas bottleneck

若不存在,则终端显示

anaconda show conda-forge/Image

这里写图片描述

6.添加通道
例如some-channel=conda-forge

conda config --append channels some-channel

要将频道添加到列表的末尾并为其指定最低优先级

conda config --append channels some-channel

删除添加的频道

conda config --remove channels some-channel

猜你喜欢

转载自blog.csdn.net/htt789/article/details/80346719