【发布时间】:2021-05-10 23:21:36
【问题描述】:
我已经获得了安装 tensorflow、keras 和 ssiann 的指南,但是我的 python 失败并且无法通过谷歌搜索原因。我有一台旧的 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,但没有任何运气。我真的尝试过谷歌,但我找到的所有解决方案都无济于事。你能帮我管理一下吗?我不知道 shell 是什么,我应该使用什么 shell。
【问题讨论】:
-
您运行一次
conda init bash,然后重新启动您的终端会话。重复:How to run Conda?