我在anaconda中有两个环境,即:root
、2env
。当我打开anaconda提示符时,我可以通过输入:root
切换到2env
。我的powershell中也有conda,但是当我打开powershell并尝试运行conda activate 2env
时,它会出现以下错误:
CommandNotFoundError:“激活”
对如何解决这个问题有什么建议吗?
发布于 2019-02-21 15:53:12
虽然Conda以前不支持PowerShell,但现在已经在Conda 4.6中解决了。
在将Anaconda3/Scripts/
添加到PATH变量后,您应该能够初始化Conda,以便与powershell一起使用:
conda init powershell
之后,您可以正常使用conda
:
conda activate base
https://stackoverflow.com/questions/47800794
复制相似问题