Python管理工具Conda的使用
安装
- macos : brew install conda
- centos: yum install conda
常用命令
环境管理
- conda info 查询conda信息
- conda update conda 升级conda
- conda create -n test python=2.7 创建环境test,并指定python版本,此例为2.7
- source activate test 激活环境
- source deactivate test 关闭环境
- conda remove --name test --all 删除环境
包管理
- conda list 列出所有安装的包的信息
- conda search pandas 查询包
- conda install -n test pandas 安装包,并指定安装环境,如果没有-n test,则安装到当前环境
- conda update pandas 升级包
- conda remove -n test pandas 移除包
网友评论