关于pip Install与conda install

conda解决依赖的问题很弱,环境包多了以后经常要解决依赖几分钟到十几分钟。我个人感觉比较好的实践是conda创建虚拟环境,装torch/tensorflow等比较难装的包,基础环境配好以后,后面装包一律用pip。

conda,pip,anaconda,miniconda的区别

网页https://www.quora.com/What-is-the-comparison-among-conda-vs-pip-vs-anaconda 很好的回答了四种概念的区别:

1)conda:

conda is a package management tool for installing scientific and analytical computing packages, which may be written in Python or other programming languages.

conda also creates a virtual environment, like python-virtualenv does.

2)anaconda:

conda is the package manager of Anaconda. Anaconda is a free Python distribution provided by Continuum Analytics, which includes over 195 of the most popular Python packages for science, math, engineering and data analysis.

(Anaconda is a set of about a hundred packages including conda, numpy, scipy, ipython notebook, and so on.)

3)miniconda:

You installed Miniconda, which is a smaller alternative to Anaconda that is just conda and its dependencies (as opposed to Anaconda, which is conda and a bunch of other packages like numpy, scipy, ipython notebook, etc.). Once you have Miniconda, you can easily install Anaconda into it with conda install anaconda. )

4)pip and conda:

pip is a general purpose Python package installer. In addition, python-pip and python3-pip are in the default Ubuntu repositories. In most cases you would choose pip instead of conda if you want to install a Python package management application. To create a Python virtual environment without installing conda, you can install python-virtualenv from the Ubuntu Software Center.

pip and conda use different packaging formats so they do not operate interchangeably, but you can use both tools side by side.

看完这些描述,我总结一下: conda是anaconda下面的一个包,也是一个包管理工具。anaconda则是一个python发行版本,包含有conda在内的各种包。miniconda就是只包含conda和conda的依赖,对于其他包,可以用conda装。pip是python 包下载管理工具,conda的话不仅是python 包下载管理工具,还可以下载其他语言的包(比如R语言),当然conda和pip是可以一起用的。

相关推荐

  1. 关于学习智慧

    2024-07-18 15:58:01       26 阅读
  2. 关于PiniaVuex】

    2024-07-18 15:58:01       15 阅读
  3. 关于图像像素opencv行关系

    2024-07-18 15:58:01       67 阅读
  4. Gorm 关联关系介绍基本使用

    2024-07-18 15:58:01       46 阅读
  5. 关于Qt中的信号

    2024-07-18 15:58:01       42 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-18 15:58:01       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-18 15:58:01       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-18 15:58:01       57 阅读
  4. Python语言-面向对象

    2024-07-18 15:58:01       68 阅读

热门阅读

  1. 梯度被原地修改,破坏了计算图

    2024-07-18 15:58:01       25 阅读
  2. matlab实现建立一个学生成绩管理系统

    2024-07-18 15:58:01       22 阅读
  3. 通过C++对象模型优化C++程序

    2024-07-18 15:58:01       23 阅读
  4. 怎么理解redis持久化?

    2024-07-18 15:58:01       19 阅读
  5. 力扣第十六题——最接近的三数之和

    2024-07-18 15:58:01       22 阅读
  6. 【Android】基础—常用控件、Intent

    2024-07-18 15:58:01       19 阅读
  7. C#中错误与异常处理

    2024-07-18 15:58:01       22 阅读
  8. zookeeper内部原理 (进阶介绍 三)

    2024-07-18 15:58:01       19 阅读
  9. Leetcode 14. 最长公共前缀

    2024-07-18 15:58:01       24 阅读