use*_*526 4 python homebrew anaconda
我刚刚尝试使用终端使用 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
Run Code Online (Sandbox Code Playgroud)
当我尝试打开 anaconda 并尝试创建 Python 环境时,我收到消息“未找到命令”。
问题是什么?
通过 Homebrew 安装 anaconda
\nbrew cask通过执行安装 anaconda
\xe2\x9e\x9c brew cask install anaconda (or)\n\xe2\x9e\x9c brew install --cask anaconda [Newer versions of Homebrew]\n.\n.\n.\nPREFIX=/usr/local/anaconda3\n.\n.\n.\n anaconda was successfully installed!\nRun Code Online (Sandbox Code Playgroud)\n让\xe2\x80\x99s运行jupyter笔记本
\n尝试jupyter notebook在您的终端中执行。
\xe2\x80\x99s 不起作用 \xe2\x80\xa6 为什么?因为我们的 shell 不知道 anaconda 文件夹在哪里,所以让 \xe2\x80\x99s 将该文件夹添加到我们的 shell 路径中。
\n设置环境路径。
\n在文件顶部插入一行 ~/.zshrc,因为当您尝试在终端上执行 python 时, it\xe2\x80\x99 将首先搜索文件夹 /usr/local/anaconda3/bin,然后再搜索默认操作系统路径,这意味着您可以执行 jupyter笔记本和蟒蛇。
export PATH="/usr/local/anaconda3/bin:$PATH"\nRun Code Online (Sandbox Code Playgroud)\n重新启动终端或使用source ~/.zshrc重新加载 shell 环境并执行 jupyter notebook 输出将如下所示
参考:使用 Homebrew 在 macOS 上安装 anaconda
\n| 归档时间: |
|
| 查看次数: |
5793 次 |
| 最近记录: |