【开发环境系列】关于conda管理Python开发环境,你需要知道的事
来源:互联网 发布:吉利知豆汽车价格 编辑:程序博客网 时间:2024/06/03 20:29
如何使用conda
安装Miniconda
从Miniconda官方网站下载Miniconda
- Py3.6, Win_64bit版本 或者Py3.6, Win_32bit版本
- Py2.7, Win_64bit版本 或者Py2.7, Win_32bit版本
安装Miniconda
创建环境
命令(cmd)列举
- 创建环境
conda create -n env_name python=<2.7|3.5|3.6>
- 安装包
conda install -n env_name lib_name
- 激活环境
activate env_name
- 冻结环境
deactivate env_name
命令使用举例
准备工作:打开cmd(同时按下win+r,打开“运行”;键入“cmd”,打开“命令行工具”)
* Python 2.7
rem 创建环境conda create -n python27 python=2.7 rem 安装NumPy包conda install -n python27 numpyrem 激活环境activate python27 rem 冻结环境deactivate python27
- Python 3.5
rem 创建环境conda create -n python35 python=3.5rem 安装tensorflow包conda install -n python35 tensorflowrem 安装tensorflow-gpu包conda install -n python35 tensorflow-gpurem 激活环境activate python35rem 冻结环境deactivate python35
- Python 3.6
rem 创建环境conda create -n python36 python=3.6rem 安装tensorflow包conda install -n python36 tensorflowrem 安装tensorflow-gpu包conda install -n python36 tensorflow-gpurem 激活环境activate python36rem 冻结环境deactivate python36
为何使用conda
- 产品角度: Miniconda只包含了conda管理器,具有最少的包; Anaconda包含了conda管理器以及其他Python包;
- 用户角度: Miniconda更适合中高级程序员,需要自定义配置;Anaconda更适合普通程序员以及数据分析师,仅需一次安装就能使用
阅读全文
0 0
- 【开发环境系列】关于conda管理Python开发环境,你需要知道的事
- 【开发环境系列】关于Docker配置Python开发环境,你需要知道的事
- 【开发环境系列】关于Git,你需要知道的事
- 【脚本语言系列】关于Python开发环境搭建,你需要知道的事
- 【脚本语言系列】关于Python集成开发环境,你需要知道的事
- conda管理python开发环境
- 【脚本语言系列】关于Python进程线程管理系统模块,你需要知道的事
- 【脚本语言系列】关于Python系统管理,你需要知道的事
- 【脚本语言系列】关于Python容器,你需要知道的事
- 【脚本语言系列】关于Python调试报错,你需要知道的事
- 【脚本语言系列】关于Python数值计算NumPy, 你需要知道的事
- 【脚本语言系列】关于Python测试工具lettuce, 你需要知道的事
- 【脚本语言系列】关于Python测试工具mock, 你需要知道的事
- 【脚本语言系列】关于Python测试工具unittest, 你需要知道的事
- 【脚本语言系列】关于Python测试工具docstrings, 你需要知道的事
- 【脚本语言系列】关于Python测试工具Pyflakes, 你需要知道的事
- 【脚本语言系列】关于Python测试工具Pylint, 你需要知道的事
- 【脚本语言系列】关于Python性能分析工具timeit, 你需要知道的事
- 校园招聘-2017携程秋招后台开发笔试编程题
- 使用RabbitMQ缩放Windows服务
- Leetcode之K-diff Pairs in an Array 问题
- 单例模式
- Mybatis批量删除
- 【开发环境系列】关于conda管理Python开发环境,你需要知道的事
- SpringBoot -- 集成Elasticsearch
- 【机器学习】分类算法之决策树(Decision tree)
- hdu3440 House Man 差分约束系统 SPFA算法
- 高晓松三问阿里巴巴合伙人,为什么来 为什么留 为什么战
- hdu-6214 Smallest Minimum Cut(最小割的最少边)
- matlab字符串操作方法
- mysql之路第四篇
- 对Cloudera Hadoop多一些了解