WD1X.COM - 问答一下,轻松解决,电脑应用解决专家
主板显卡CPU内存显示器
硬盘维修显卡维修显示器维修
注册表系统命令DOS命令Win8
存储光存储鼠标键盘
内存维修打印机维修
WinXPWin7Win11Linux
硬件综合机箱电源散热器手机数码
主板维修CPU维修键盘鼠标维修
Word教程Excel教程PowerPointWPS
网络工具系统工具图像工具
数据库javascript服务器
PHP教程CSS教程XML教程

Win10下使用anaconda的conda activate激活环境时,报错怎么办?

更新时间:2021-07-17 21:32 作者:DK数据工作室点击:

W10系统环境下,使用anaconda的conda activate激活环境时,报错怎么办?

报错内容:

CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.
If using ‘conda activate’ from a batch script, change your
invocation to ‘CALL conda.bat activate’.

To initialize your shell, run

$ conda init <SHELL_NAME>

Currently supported shells are:
– bash
– cmd.exe
– fish
– tcsh
– xonsh
– zsh
– powershell

See ‘conda init --help’ for more information and options.

IMPORTANT: You may need to close and restart your shell after running ‘conda init’.

解决办法:

1、打开CMD,先输入activate,回车。
2、然后再conda activate xxx ,回车 。

注:(xxx是你的环境名或你的环境所在路径)

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
你可能感兴趣的内容