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

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
主站蜘蛛池模板: 浮梁县| 邯郸市| 十堰市| 宜州市| 图木舒克市| 鞍山市| 北辰区| 北流市| 资溪县| 浦江县| 读书| 凤山县| 韶关市| 高雄县| 永川市| 静安区| 万州区| 托里县| 黄山市| 前郭尔| 普兰店市| 施秉县| 娱乐| 海宁市| 龙山县| 屏边| 黑山县| 潮安县| 柏乡县| 和龙市| 三门县| 南丹县| 渑池县| 梧州市| 治县。| 灯塔市| 专栏| 遂宁市| 宜都市| 肇州县| 镇康县|