【发布时间】:2020-10-18 01:29:38
【问题描述】:
我刚刚尝试通过终端使用 Home-brew 安装 Anaconda,并收到以下消息:
L-MBP:agda-stdlib le$ brew install conda
Updating Homebrew...
Error: No available formula with the name "conda"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
L-MBP:agda-stdlib le$ brew install anaconda
Error: No available formula with the name "anaconda"
Found a cask named "anaconda" instead. Try
brew cask install anaconda``
L-MBP:agda-stdlib le$ brew cask install anaconda
==> Caveats
Cask anaconda installs files under /usr/local. The presence of such
files can cause warnings when running `brew doctor`, which is considered
to be a bug in Homebrew Cask.
...
installation finished.
==> Changing ownership of paths required by anaconda; your password may be necessary
???? anaconda was successfully installed!
L-MBP:agda-stdlib le$ conda create --name snakes python=3.7.2
-bash: conda: command not found
L-MBP:agda-stdlib le$ conda -bash: conda: command not found
当我尝试打开 anaconda 并尝试创建 Python 环境时,我收到消息“找不到命令”。
有什么问题?
【问题讨论】:
-
当你尝试 conda --version 会发生什么?
-
-bash: conda: command not found -
您是在 anaconda 提示符下还是在 CMD 中输入命令?
-
在 Mac 终端中。
-
对不起,我才发现macOS中没有anaconda提示