conda activate: The logic and mechanisms underlying environment activation have been reworked. With conda 4.4, conda activate and conda deactivate are now the preferred commands for activating and deactivating environments. You’ll find they are much more snappy than the source activate and source deactivate commands from previous conda versions. The conda activate command also has advantages of (1) being universal across all OSes, shells, and platforms, and (2) not having path collisions with scripts from other packages like python virtualenv’s activate script.
我在Mac操作系统上使用Anaconda Navigator 1.8.2和Spyder 3.2.8,我认为这与Linux类似。
在水蟒身上安装virtualenv非常容易:
然后安装所需的软件包
从conda 4.4开始,
conda activate
是激活环境的首选方法。一般来说,您不会发现conda activate
和旧的source activate
之间有太大的区别,除了它意味着更快,并且在不同的操作系统上工作相同(后者的区别使得conda activate
aIMO有了巨大的改进)。来自docs,关于conda版本
4.4.0
(2017年12月发布)的发布:这是我发现的一个不同点。
source activate
可以在bash脚本的开头使用以加载conda环境,而conda activate
将给出一个错误:这对我来说有很大的不同,因为我经常将bash作业提交给集群,
source activate
是更改conda环境的唯一方法。如果有人可以在bash脚本中使用
conda activate
,请更正我。相关问题 更多 >
编程相关推荐