如何设置 "SHELL" 以使用 Conda 激活
How to set a "SHELL" to use Conda activate
我得到了安装 tensorflow、keras 和 sciann 的指南,但我的 python 失败了,无法 google 为什么。我有一台旧的 2010 MacBook Pro (masOS 10.12.6),我通过 Spyder 使用 Python 3.8.5。这是做什么的:
首先,我用 python 创建一个环境“ml”:
conda create -n ml python=3.8.5 -y
这有效我已经检查了我计算机上的文件夹。然后我尝试激活这个
conda activate ml
这就是我出错的地方:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- 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'.
Note: you may need to restart the kernel to use updated packages.
我也试过 condo init ml
但没有成功。我确实尝试 google 但我找到的所有解决方案都无济于事。你能帮我管理一下吗?我不知道 shell 是什么以及我应该使用什么 shell。
在您的终端中,输入以下命令:
ps -p $$
弄清楚你有什么 shell。 shell 基本上允许您访问计算机的操作系统。然后,根据它所说的,执行 conda init。例如,如果显示 bash,则执行:
conda init bash
conda init bash 基本上是告诉您的计算机您可以从 shell 启动 conda 程序。在这种情况下,您的 shell 是“bash”,这是许多不同的 shell 之一。
我得到了安装 tensorflow、keras 和 sciann 的指南,但我的 python 失败了,无法 google 为什么。我有一台旧的 2010 MacBook Pro (masOS 10.12.6),我通过 Spyder 使用 Python 3.8.5。这是做什么的:
首先,我用 python 创建一个环境“ml”:
conda create -n ml python=3.8.5 -y
这有效我已经检查了我计算机上的文件夹。然后我尝试激活这个
conda activate ml
这就是我出错的地方:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- 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'.
Note: you may need to restart the kernel to use updated packages.
我也试过 condo init ml
但没有成功。我确实尝试 google 但我找到的所有解决方案都无济于事。你能帮我管理一下吗?我不知道 shell 是什么以及我应该使用什么 shell。
在您的终端中,输入以下命令:
ps -p $$
弄清楚你有什么 shell。 shell 基本上允许您访问计算机的操作系统。然后,根据它所说的,执行 conda init。例如,如果显示 bash,则执行:
conda init bash
conda init bash 基本上是告诉您的计算机您可以从 shell 启动 conda 程序。在这种情况下,您的 shell 是“bash”,这是许多不同的 shell 之一。