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
146 views
in Technique[技术] by (71.8m points)

python - macOS Catalina没有适用于Python库的gcc(macOS Catalina does not have gcc for Python libraries)

After upgrading to Catalina, my old Anaconda was not working anymore.

(升级到Catalina后,我的旧Anaconda不再工作了。)

I reinstalled it.

(我重新安装了它。)

Now it is located in different place: ~/opt/anaconda3 .

(现在它位于不同的位置: ~/opt/anaconda3 。)

Some of the libraries I use require gcc .

(我使用的某些库需要gcc 。)

That does not work either.

(那也不行。)

Previously, it was possible to download gcc-xx-bin.tar and do sudo tar -xvf gcc-xx-bin.tar -C / but that is also not working.

(以前,可以下载gcc-xx-bin.tar并执行sudo tar -xvf gcc-xx-bin.tar -C /但这也不起作用。)

xcode-select --install is still doing fine.

(xcode-select --install仍然运行良好。)

Can anyone, please, give a step-by-step how-to get gcc running on the latest macOS?

(任何人都可以逐步介绍如何使gcc在最新的macOS上运行吗?)

Would brewer do a better job?

(brewer做得更好吗?)

New OS versions are constantly changing things and that makes running programming environments very hard...

(新的OS版本不断变化,这使运行编程环境变得非常困难。)

[Apologies for cross-posting, but AskDifferent community does not seem very responsive to programming matters!]

([为交叉发布而道歉,但是AskDifferent社区似乎对编程问题反应不大!])

  ask by striatum translate from so

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

1 Reply

0 votes
by (71.8m points)

use brew

(使用冲泡)

open terminal

(打开终端)

install brew

(安装酿造)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

install gcc

(安装gcc)

brew install gcc


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

...