Python-Snappy的安装 以及报错解决
来源:互联网 发布:angularjs ng show js 编辑:程序博客网 时间:2024/09/21 08:49
错误1:
如果linux环境中,缺少g++,则会报错:
解决办法:
安装g++ (或者下面这个,替代g++的)
yum install gcc-c++
-------------------------------------------------------------------------------------------------------------------------------------------
错误2:
直接使用pip install ,会报错:
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
snappymodule.cc:31:22: error: snappy-c.h: No such file or directory
snappymodule.cc:77: error: 'snappy_status' was not declared in this scope
snappymodule.cc:78: error: expected ',' or ';' before '{' token
snappymodule.cc:45: warning: '_state' defined but not used
snappymodule.cc:56: warning: 'SnappyCompressError' defined but not used
snappymodule.cc:57: warning: 'SnappyUncompressError' defined but not used
snappymodule.cc:58: warning: 'SnappyInvalidCompressedInputError' defined but not used
snappymodule.cc:59: warning: 'SnappyCompressedLengthError' defined but not used
snappymodule.cc:77: warning: 'snappy_strerror' defined but not used
error: command 'gcc' failed with exit status 1
报错根源是找不到关键文件: snappy-c.h
解决办法:
最简便的解决办法是,先装一下 snappy-devel
yum install snappy-devel
然后再装 python-snappy,就没有问题了
pip install python-snappy
- Python-Snappy的安装 以及报错解决
- 【python】Linux服务器下安装python 的 MySQLdb 以及常见报错解决
- python︱模块加载(pip安装)以及pycharm安装与报错解决方式
- 最笨的方法解决 使用Snappy 压缩方式报错“java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path”
- Hadoop/Hbase的Snappy安装
- junit 报错以及解决的办法
- Java调用Python脚本,以及报错解决
- Snappy安装
- Linux apache+php编译安装以及报错解决
- ubuntu 16.04安装opencv3.0流程以及报错解决
- ubuntu 16.04安装opencv3.0流程以及报错解决
- 一个简单的Snappy Ubuntu python webserver
- 安装python MySQLdb报错:pymemcompat.h:10:20: 致命错误的解决
- 安装python MySQLdb报错:pymemcompat.h:10:20: 致命错误的解决
- 解决 Linux 下 virtualenv 中 pip 安装 Mysql-python 报错的问题
- [Linux-Tech]解决xen安装时python-central报错
- 解决Win下Python安装pylint时UnicodeDecodeError报错
- python 安装 Scrapy 报错(已解决)
- python采用pika库使用rabbitmq总结,多篇笔记和示例
- PHP-FPM进程数的设定
- iOS/Android 浏览器(h5)及微信中唤起本地APP
- 开源|如何用Caffe深度学习框架实现A-Fast-RCNN
- Windows 2008 R2上配置IIS7或IIS7.5中的URLRewrite(URL重写)实例
- Python-Snappy的安装 以及报错解决
- Android-Bug修复--java.lang.NoSuchFieldError: Toolbar_buttonGravity
- BZOJ 1026 [SCOI2009]windy数
- android 控件之HorizontalScrollView
- Excel服务器的发展历程
- javascript学习笔记
- Java NIO系列教程
- xib约束UIScrollView
- 。。。,要等到后期开放才能再用回之前的账号了。以后主要在这落脚了