使用conda安装Python第三方工具包
2017-04-16 12:49
891 查看
最近在学习Zipline框架,在安装的过程中遇到了一些问题,简单记录如下
个人开发环境:Anaconda(纯净的Python2.7,这个一直没用过)
尝试用之前的pip,没有成功。后来在网上查到了conda指令
conda提供了对包、依赖、开发环境的管理,支持Python、Java、c++等多种语言
以下文字来自 https://conda.io/docs/intro.html ,阅读应该不难
Conda is a package manager application that quickly installs, runs, and updates packages and their dependencies. The conda command is the primary interface for managing installations of various packages. It can query and search
the package index and current installation, create new environments, and install and update packages into existing conda environments. See our Using conda section for more information.
Conda is also an environment manager application. A conda environment is a directory that contains a specific collection of conda packages that you have installed. For example, you may have one environment with NumPy 1.7 and its dependencies, and another environment
with NumPy 1.6 for legacy testing. If you change one environment, your other environments are not affected. You can easily activate or deactivate (switch between) these environments. You can also share your environment with someone by giving them a copy of
your environment.yaml file.
上文中,大概提到了第三方包的安装、更新、卸载,显示安装包目录等等。但是关于环境管理挺不好理解的:
运行不同的Python程序,需要使用不同版本的Python(2.x或3.x)(对不同的Python项目,我们可以实现开发环境的隔离)
在同一中Python版本中,可能需要用到不同版本的第三方包,例如:Django 1.6或者Django 1.7
这也解牵涉到了所谓的虚拟环境,在Python中,conda指令可以对虚拟环境进行有效的控制,安装、克隆、切换、删除等等
我直接附上网站吧,需要的同学直接去看原味的解释
What is the difference between pip and conda?
个人开发环境:Anaconda(纯净的Python2.7,这个一直没用过)
尝试用之前的pip,没有成功。后来在网上查到了conda指令
一、Intro to conda
Package, dependency and environment management for any language: Python, R, Scala, Java, Javascript, C/ C++, FORTRANconda提供了对包、依赖、开发环境的管理,支持Python、Java、c++等多种语言
以下文字来自 https://conda.io/docs/intro.html ,阅读应该不难
Conda is a package manager application that quickly installs, runs, and updates packages and their dependencies. The conda command is the primary interface for managing installations of various packages. It can query and search
the package index and current installation, create new environments, and install and update packages into existing conda environments. See our Using conda section for more information.
Conda is also an environment manager application. A conda environment is a directory that contains a specific collection of conda packages that you have installed. For example, you may have one environment with NumPy 1.7 and its dependencies, and another environment
with NumPy 1.6 for legacy testing. If you change one environment, your other environments are not affected. You can easily activate or deactivate (switch between) these environments. You can also share your environment with someone by giving them a copy of
your environment.yaml file.
上文中,大概提到了第三方包的安装、更新、卸载,显示安装包目录等等。但是关于环境管理挺不好理解的:
运行不同的Python程序,需要使用不同版本的Python(2.x或3.x)(对不同的Python项目,我们可以实现开发环境的隔离)
在同一中Python版本中,可能需要用到不同版本的第三方包,例如:Django 1.6或者Django 1.7
这也解牵涉到了所谓的虚拟环境,在Python中,conda指令可以对虚拟环境进行有效的控制,安装、克隆、切换、删除等等
what is difference between pip and conda?
既然都是关于python的包管理工具为什么有了pip 我们还需要conda?我们来看看stackoverflow上的解答我直接附上网站吧,需要的同学直接去看原味的解释
What is the difference between pip and conda?
相关文章推荐
- Python 使用pypi镜像源加速第三方库在线安装
- Python3.x安装第三方库的方法 欢迎使用CSDN-markdown编辑器
- Python第三方库的安装使用
- MAC 系统 单独安装的python无法使用pip安装第三方包
- Python笔记6——模块的使用和路径,别名,作用域,安装第三方库
- 命令行方式安装Python第三方工具包
- 第6课 python函数之第三方函数的安装和使用
- python使用安装numpy、scipy、matplotlib等工具包
- 简单粗暴:使用pycharm安装对应的Python版本第三方包
- Python3学习(20)--第三方模块pymysql的安装及使用
- python3.4学习笔记(八) Python第三方库安装与使用,包管理工具解惑
- python 如何使用pip安装第三方软件
- 使用pip来安装和管理第三方Python包(library)
- 无法使用pip命令安装python第三方库的原因
- 使用easy_install安装python第三方模块的方法
- Python使用easy_install安装第三方插件、安装包
- windows下使用pip安装python的第三方lxml库
- python中如何使用pip安装自己的第三方模块 推荐
- Python笔记6——模块的使用和路径,别名,作用域,安装第三方库
- 解决:在anaconda下无法使用conda安装第三方库问题