简体   繁体   中英

macOS Catalina does not have gcc for Python libraries

After upgrading to Catalina, my old Anaconda was not working anymore. I reinstalled it. Now it is located in different place: ~/opt/anaconda3 .

Some of the libraries I use require 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.

xcode-select --install is still doing fine.

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

Would brewer do a better job?

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

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

use brew

open terminal

install brew

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

install gcc

brew install gcc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM