`
hallywang
  • 浏览: 7317 次
  • 性别: Icon_minigender_1
  • 来自: 南京
文章分类
社区版块
存档分类
最新评论

mac pyenv 安装 python 报错 解决记录

 
阅读更多

mac下用  在安装好 pyenv之后,使用pyenv install 3.6.3 后报错:

 

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

 

 

解决方案:

执行  xcode-select --install ,弹出安装框安装.

 

=========================================

如果仍然无法解决,查看日志中如果包含如下内容,请尝试 

 

1  brew install xz  # 日志中有报错  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  #日志报错  fatal error: 'X11/Xlib.h' file not found

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics