美文网首页
pyenv安装python报错 zipimport.ZipImp

pyenv安装python报错 zipimport.ZipImp

作者: jzhang | 来源:发表于2019-04-12 16:20 被阅读0次

    https://github.com/jiansoung/issues-list/issues/13找到了解决办法

    $ brew install zlib
    $ brew install sqlite
    $ export LDFLAGS="${LDFLAGS} -L/usr/local/opt/zlib/lib"
    $ export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/zlib/include"
    $ export LDFLAGS="${LDFLAGS} -L/usr/local/opt/sqlite/lib"
    $ export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/sqlite/include"
    $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/zlib/lib/pkgconfig"
    $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/sqlite/lib/pkgconfig"
    $ pyenv install 3.6.8
    

    相关文章

      网友评论

          本文标题:pyenv安装python报错 zipimport.ZipImp

          本文链接:https://www.haomeiwen.com/subject/lhocwqtx.html