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
PS:提醒下,使用conda后,在 非conda shell里的pip install会报错。而在conda shell里,设置当前环境后,pip install会把相应的package安装到当前环境下。