pyenv install安装的坑

pyenv install 3.6.1

报错:

问题解决了懒得再弄一遍用的别人的图不用纠结版本问题

原因:zipimport.ZipImportError: can't decompress data; zlibnotavailable

执行:CFLAGS="-I$(xcrun --show-sdk-path)/usr/include"pyenv install -v3.6.1

ifwhich pyenv>/dev/null;theneval"$(pyenv init -)";fi(这一句一定要放在.bash_profile的最下面~)

搞定

你可能感兴趣的:(pyenv install安装的坑)