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

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
主站蜘蛛池模板: 梁平县| 宜兰市| 嘉鱼县| 临夏市| 湖口县| 葵青区| 清水县| 黑山县| 平阳县| 浦江县| 云龙县| 特克斯县| 灵宝市| 剑河县| 延安市| 秀山| 横峰县| 大方县| 阜宁县| 商河县| 鸡西市| 诏安县| 邳州市| 安龙县| 广丰县| 藁城市| 宣威市| 揭西县| 廊坊市| 且末县| 赤水市| 永安市| 犍为县| 桦川县| 城口县| 玛纳斯县| 玉门市| 章丘市| 祁阳县| 乌鲁木齐县| 化州市|