mac python install zlib not available
2016-02-29 16:50
696 查看
用brew install 3.4.4(python)时报
zipimport.ZipImportError: can't decompress data; zlib not available
的错误,采用以下两步解决。
1、macdeMacBook-Pro:~ mac$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
2、macdeMacBook-Pro:~ mac$ brew install zlib
Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
zipimport.ZipImportError: can't decompress data; zlib not available
的错误,采用以下两步解决。
1、macdeMacBook-Pro:~ mac$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
2、macdeMacBook-Pro:~ mac$ brew install zlib
Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
相关文章推荐
- python中__getattr__()和__getattribute__()方法的区别
- learn python the hard way(笨办法学python) 练习46
- 通过Python利用saltstack进行生成服务器资产清单
- 通过Python利用saltstack进行生成服务器资产清单
- python 中关于struct处理二进制数据
- Python学习:基础(5)任意**m进制到n进制**的转换
- java or spring +jython +python (Error:python.home,Determine if the following attributes are correct:)
- python——文件读写
- python——文件读写
- python下划线变量的含义
- Python 异常处理
- 为树莓派增加时钟模块ds3231
- 很好的python 学习网站
- import,reload,__import__在python中的区别
- 【python】编程语言入门经典100例--15
- 利用Python,四步掌握机器学习
- python多进程不同实现方法的异同点
- 使用pyenv和virtualenv搭建python虚拟环境
- MySQL分库分表python实现分库(7th)
- python群发QQ邮件研究