python安装hyperscan-python

Posted 匡子语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python安装hyperscan-python相关的知识,希望对你有一定的参考价值。

环境centos6.2

 

1. 先安装hyperscan

主要参考http://blog.csdn.net/cheng_fangang/article/details/51143412

注意:里面2.8不要照做 libstdc++.so.6不要修改

 

不同点:

cmake hyperscan-4.0.0前,把hyperscan-4.0.0中的CMakeLists.txt里的

option(BUILD_SHARED_LIBS "Build shared libs instead of static" OFF)

改为

option(BUILD_SHARED_LIBS "Build shared libs instead of static" ON)

区别:OFF编译的是静态库,ON编译的是动态库。后面安装python模块时需要动态库

 

2. 安装python-hyperscan

下载代码:https://github.com/grrrrrrrrr/hyperscan-python

 

修改环境变量

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/gcc/lib64/

其中:/usr/local/gcc/lib64/ 是libstdc++.so.6.0.18的存放路径

 

安装

python setup.py build

python setup.py install

 

验证

进入python, import hyperscan

 

以上是关于python安装hyperscan-python的主要内容,如果未能解决你的问题,请参考以下文章

pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )(示例代

Python爬虫安装 pyQuery 遇到的坑 Could not find function xmlCheckVersion in library libxml2. Is libxml2 ins(代

Python代写,Python作业代写,代写Python,代做Python

python 图像归一化作业代码代编程代写图python作业

代写python,代写python编程,python代写,python编程代写,留学生python代写

代写C, C++ or Python 作业,Linux environment下编程代写C, C++ or Python 作业代写