我最近买了一台带有 M1 处理器的新 Mac。从终端我通过 home-brew 安装了 miniconda。然后,我尝试像往常一样使用创建一个新的 conda 环境conda create --name my_env
。然后,我尝试使用 激活环境conda activate my_env
,但出现以下错误:
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'.
我当然服从,然后我运行conda init bash
并关闭并重新启动我的 shell。但是,当我尝试激活我的环境时,我再次收到上述错误(并且重新运行conda init bash
并不能解决问题,因为它只是说“未采取任何措施”。
问题:
- 有谁知道为什么我还是不能跑
conda activate
? - 甚至在没有 Rosetta 的情况下将 miniconda 用于 Python 是否明智?
非常感谢