Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
183 views
in Technique[技术] by (71.8m points)

Fixing Anaconda Python after Big Sur update

I recently upgraded macOS from High Sierra to Big Sur. My Anaconda installation, which was previously installed in /anaconda3 is now broken.

First /anaconda3 is missing; I found it in /System/Volumes/Data/anaconda3. Second, the conda and activate commands do not work because many files in the anaconda3 folder still expect the path to be /anaconda3. For example,

$ /System/Volumes/Data/anaconda3/bin/conda env list
-bash: /System/Volumes/Data/anaconda3/bin/conda: /anaconda3/bin/python: bad interpreter: No such file or directory

What's the solution to get this working on Big Sur? Should I nuke the anaconda3 folder and re-install? If so, can I export the list of environments and packages to re-create them post-install?

Note that a similar issue affecting Catalina users is not identical to this Big Sur issue. If you didn't previously keep anaconda3 under /, you can easily move the anaconda3 directory back to its previous location. If anaconda3 was under /, however, this is not possible because macOS Big Sur doesn't allow the folder to be put back under / even when using sudo.

question from:https://stackoverflow.com/questions/65650279/fixing-anaconda-python-after-big-sur-update

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...