Used under mac After installing pyenv, after using pyenv install 3.6.3, an error is reported:
copying build/lib.macosx-10.12-x86_64-3.6/__pycache__/_sysconfigdata_m_darwin_darwin.cpython-36.opt-1.pyc -> /Users/apple/.pyenv/versions/3.6.3/lib/python3.6/lib-dynload/__pycache__
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /private/var/folders/k7/xw9qkkrs11j1385x44_4_tfc0000gn/T/python-build.20171103094811.19320/Python-3.6.3/./python.exe
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /private/var/folders/k7/xw9qkkrs11j1385x44_4_tfc0000gn/T/python-build.20171103094811.19320/Python-3.6.3/./python.exe
Expected in: /usr/lib/libSystem.B.dylib
make: *** [sharedinstall] Abort trap: 6
solution:
Execute xcode-select --install , pop up the installation box to install.
=========================================
If you still can't solve it, check the log if it contains the following content, please try
1 brew install xz # There is an error in the log lzma.h file not found
2 sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/X11 #Log error fatal error: 'X11/Xlib.h' file not found