我在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
复制相似问题
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2024 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287