Reputation: 59
After installing python 3.4.3 and on running the command python3.4, it gives an error:
dyld: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Referenced from: /Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS/Python
Reason: image not found
Upvotes: 1
Views: 1553
Reputation: 21
(2022 update) The patch isn't enough, as explained later in the thread. Instead:
Save the updated patch locally.
Run the following 2 commands:
brew uninstall --ignore-dependencies --force openssl
brew reinstall zlib
CPPFLAGS="-I/usr/local/opt/zlib/include -I$(brew --prefix readline)/include" LDFLAGS="-L$(brew --prefix readline)/lib -L/usr/local/opt/zlib/lib" pyenv install 3.4.3 --patch < Python-3.4.3-macos.patch
Upvotes: 0
Reputation: 59
I found a solution to the above problem. It can be done using pyenv manager installed using brew instead of using default pkg installer.
You might face few errors in that too like:
implicit declaration of function 'getentropy' is invalid in C99
Those errors can be avoided by using a patch. Patch link
Following this entire link should help you in getting Python 3.4.x running in BigSur.
Upvotes: 2