最近因为工作需要在window10系统下的Linux子系统里配置了pyeemd,其他博主的命令运行有一些小问题所以自己写了一篇
关于配置windows子系统我是参考这两篇文章的,很详细。
Windows系统下Linux子系统配置
https://segmentfault.com/a/1190000022147430
VScode与Linux子系统下的Ubuntu链接
https://www.cnblogs.com/tianyamoon/p/14195169.html
配置成功后可直接桌面打开VScode并通过远程连接在Linux下运行
1.在Linux系统下安装gsl
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
sudo make install
2.安装Libeemd
wget https://bitbucket.org/luukko/libeemd/get/4aaaea9bbc52.zip
unzip 4aaaea9bbc52.zip
cd luukko-libeemd-4aaaea9bbc52/
make
sudo make install
如果提示没有安装unzip可在Ubuntu终端输入命令:sudo apt-get install unzip
参考:Ubuntu unzip 安装_CH等等的博客-CSDN博客
如果提示:
pkg-config not found configure: error:
Please reinstall the pkg-config distribution
可在Ubuntu终端输入命令:
sudo apt-get install pkg-config
3.安装pyeemd
wget https://bitbucket.org/luukko/pyeemd/get/bfc6a5873741.zip
unzip bfc6a5873741.zip
cd luukko-pyeemd-bfc6a5873741/
sudo python3 setup.py install
此时创建python文件运行代码 import pyeemd 时会报错
OSError: libgsl.so.23: cannot open shared object file: No such file or directory
此时在Ubuntu终端输入命令:sudo ldconfig /usr/local/lib
完成以上步骤pyeemd即可运行