升级到macOS Catalina后找不到Conda [英] Conda not found after upgrading to macOS Catalina

查看:332
本文介绍了升级到macOS Catalina后找不到Conda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将MacBook更新为Catalina.更新后,zsh找不到了.实际上,在我的.zshrc中,我有:

I've just updated my MacBook to Catalina. After the update, zsh can't find anymore. In fact, in my .zshrc I had:

export PATH=/anaconda3/bin:$PATH

但是,路径/anaconda3/bin 不再存在.这是否意味着我已经失去了所有环境?

However, the path /anaconda3/bin doesn't exist anymore. Does that mean that I have lost all of my environment?

推荐答案

您可以在桌面上名为已重新放置的物品"的快捷链接中找到整个anaconda3环境.似乎升级到Catalina不允许将Conda环境安装在用户目录下,该目录现在可能与将新系统卷移至只读分区有关.

You can find the entire anaconda3 environment in a shortcut link named 'Relocated Items' on your desktop. It appears as though the upgrade to Catalina does not allow the Conda environment to be installed under a user directory now likely having to do with the new system volume move to a read-only partition.

这个问题可以追溯到6月10日,我有点失望,因为在Catalina升级到来之前它没有得到解决.

This issue has been opened as far back as June 10th, I am a little disappointed that it was not resolved before the Catalina upgrade came around.

有一种解决方案似乎可以在不失去环境的情况下正常工作,请参见以下链接:

There is a solution that appears to work without losing your environment, see this link: https://github.com/ContinuumIO/anaconda-issues/issues/10998#issuecomment-539215005

通过链接:

  1. 将位于重定位项"中的文件夹anaconda3复制到/Users/myname/

  1. Copy the folder anaconda3 located in Relocated Items to /Users/myname/

打开终端

输入:export PATH='/Users/myname/anaconda3/bin:$PATH'

输入:conda init zsh

这篇关于升级到macOS Catalina后找不到Conda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆