配置安装pyeemd
windows
windows系统下配置挺麻烦,
教程网站:http://juiceyang.com/2016/03/24/how-to-install-pyeemd-on-windows-in-3-steps/
linux
我在linux 下安装。
安装gsl(libeemd的依赖包)
wget http://mirrors.ustc.edu.cn/gnu/gsl/gsl-2.4.tar.gz
tar zxvf gsl-2.4.tar.gz
cd gsl-2.4
./configure
make
make install
安装libeemd
wget https://bitbucket.org/luukko/libeemd/get/4aaaea9bbc52.zip
tar zxvf 4aaaea9bbc52.zip
cd luukko-libeemd-4aaaea9bbc52/
make
make install
安装pyeemd
wget https://bitbucket.org/luukko/pyeemd/get/bfc6a5873741.zip
unzip bfc6a5873741.zip
cd luukko-pyeemd-bfc6a5873741/
python3 setup.py
进入python,如下:
import pyeemd
我在安装过程中报错及解决方法:
一. 安装libeemd时,使用make指令之后,提示pkg-config找不到gsl,可能原因有:
- 没有安装好gsl,可参考gsl安装教https://blog.csdn.net/u012248802/article/details/80655902
- linux系统没有安装pkg-config,unbuntu可以输入以下命令安装:
apt-get install pkg-config
二:以上都安装完成后,在python中import pyeemd后提示:
OSError: libgsl.so.23: cannot open shared object file: No such file or directory
可以试试添加环境变量:
LD_LIBRARY_PATH=/usr/local/lib