macOS version: 11.2.2
Xcode version: 11.5 (command line tools installed)
>>> gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I uninstalled Python 3.8.2 to reinstall it with tkinter configuration. When I tried to reinstall Python with pyenv, I keep getting the "error: C compiler cannot create executables".
I've seen other people ask a similar question and their problem is usually solved by installing the Xcode command line tools. I have tried this multiple times and it didn't solve the issue. Is there anything else I can try?
What I'm getting for gcc -v seems a little strange, perhaps it's an issue with that?
Any help would be extremely appreciated.