本来好好的,在自己建的环境里啥啥都装好了,结果更新了一下conda,然后无论是install还是uninstall,都报错,害怕,查了半天没解决,浮然看到github上有老外讲“conda 包仅在 Anaconda 根环境中可用,并非在所有环境中都可用”。跑去root环境下运行了一下conda update conda ,发现前后conda版本并无变化,但是在进入小环境运行conda命令已经不报错了。神奇。
这是那段原话(后面的我没试):
The conda package is only available in the Anaconda root environment, not all environments. The Ubuntu DSVM has the py35 environment as the default one, and the root environment is py27. This update step should be conda update conda -n root for the Ubuntu DSVM.
还有一个小tip:有人建议conda和pip 不要混着用,尽量”从一而终“。
Ubuntu新手,请多指教。(_*_)
本文解决了conda更新后,在自定义环境中使用install或uninstall命令出现的问题。通过在Anaconda根环境中更新conda,并遵循单一使用原则(即要么全部使用conda,要么全部使用pip),问题得到了有效解决。
1万+

被折叠的 条评论
为什么被折叠?



