Homebrew pyenv install error dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
问题 After installing pyenv from Homebrew on MacOS Mojave I am getting build errors when attempting to install any python versions. When running pyenv install for any version the build will fail with error: dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Referenced from: /usr/local/bin/awk Reason: image not found 回答1: The solution for me was to force link the readline 8 lib that I had under /usr/local/opt/readline/lib/ . > cd /usr/local/opt/readline/lib/ > ls libhistory.8