官术网_书友最值得收藏!

There's more... 

Some of you may question the necessity of installing Anaconda and using conda to manage packages since it is easy to install packages with pip. In fact, conda is a better packaging tool than pip. We mainly use conda for the following four reasons:

  • It handles library dependencies nicely: Installing a package with conda will automatically download all of its dependencies. However, doing so with pip will lead to a warning, and installation will be aborted.
  • It solves conflicts of packages gracefully: If installing a package requires another package of a specific version (let's say 2.3 or after, for example), conda will update the version of the other package automatically.
  • It creates a virtual environment easily: A virtual environment is a self-contained package directory tree. Different applications or projects can use different virtual environments. All virtual environments are isolated from each other. It is recommended to use virtual environments so that whatever we do for one application doesn't affect our system environment or any other environment.
  • It is also compatible with pip: We can still use pip in conda with the following command:
conda install pip
主站蜘蛛池模板: 铅山县| 横山县| 北流市| 枣阳市| 双鸭山市| 南宫市| 波密县| 陆丰市| 武川县| 永川市| 乐业县| 丰原市| 师宗县| 庄河市| 渭源县| 彭山县| 滨海县| 云南省| 名山县| 阳东县| 正安县| 南部县| 吉木萨尔县| 庆城县| 平乡县| 奎屯市| 玉屏| 临猗县| 富源县| 阿巴嘎旗| 黄冈市| 德令哈市| 静宁县| 石景山区| 南华县| 山西省| 富川| 北辰区| 黄冈市| 阳高县| 栾川县|