[英]Any risk of breaking anaconda python when force upgrading packages using conda-forge?
In my anaconda setup, some python packages like arrow in anaconda uses the pypi channel. 在我的anaconda设置中,anaconda中的arrow之类的一些python包使用pypi通道。 However, these packages are not the latest version. 但是,这些软件包不是最新版本。 The latest version is found in the conda-forge channel. 最新版本可在conda-forge频道中找到。 For example, to upgrade to the latest version of arrow using conda-forge, I run the following command; 例如,要使用conda-forge升级到最新版本的arrow,我运行以下命令;
$ conda install -c conda-forge arrow
There should be some reason why the default channel is pypi and not conda-forge. 默认频道为pypi而非conda-forge的原因应该有一定的原因。 So, will there be any risk of breaking anaconda packages if I were to force upgrade packages using conda-forge channel? 因此,如果我要使用conda-forge渠道强制升级软件包,会有破坏anaconda软件包的风险吗?
I installed anaconda 2018.12 which runs on Windows 10. 我安装了在Windows 10上运行的anaconda 2018.12。
The safest thing to do is to make a new env 最安全的做法是制作一个新的环境
conda create -n myenv -c conda-forge arrow
The most dangerous thing to do, in my anecdotal experience of seeing people on StackOverflow with broken Conda installations, is to install things in base . 在我的轶事经历中,最危险的事情是在StackOverflow上看到有人使用损坏的Conda安装程序,那就是将程序安装在base上 。 Unfortunately, this is what many Anaconda users do, likely because Anaconda distributes with everything installed in base already. 不幸的是,这是许多Anaconda用户所做的,这很可能是因为Anaconda分发时已经安装了所有安装在基础中的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.