conda常用指令

conda info #查询conda信息
conda update conda #升级conda
conda update anaconda #升级anaconda
conda update python 升级python
conda create --name [name] [dependent package list] #创建环境
#例: conda create --name mypython2

#激活环境
    •   Linux and macOS: source activate snowflakes
    •   Windows: activate snowflakes

conda info --envs #列出当前的所有环境

conda remove --name mypython2 --all #删除指定的环境

1、查询可用包版本信息
conda search --full-name python
conda search beautifulsoup4


查询在线包链接:
https://anaconda.org/

2、查询当前环境中的包列表
conda list

3、在环境中安装包
conda install numpy=1.13.3
conda install --name [环境名称] beautifulsoup4
指定下载地址方式安装
    1.  In a browser, go to http://anaconda.org.
    2.  Look for a package named “bottleneck”:
    1.  In the top-left corner of the screen, in the Search Anaconda Cloud box, type bottleneck.
    2.  Click the Search button.
    3.  There are more than a dozen copies of bottleneck available on Anaconda.org, but you want the most frequently downloaded copy.
    4.  Click the Downloads column heading to sort the results by number of downloads.
    5.  Click the package name of the version that has the most downloads.The Anaconda.org detail page appears, showing the command to use to download the package:
        conda install -c conda-forge bottleneck

    6.  Run the displayed command.

使用pip工具安装

pip只是一个包管理工具,不同于conda,是无法识别环境的,而且无法更新python,pip认为python不是一个包。但pip可以安装一些conda无法安装的包,pip已经随着anaconda和minconda安装好了。

安装命令
pip install see

4、删除包
conda remove --name [环境名称] iopro

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值