系统: linux redhat
环境: python2.7
tsfresh官网:http://tsfresh.readthedocs.io/en/latest/text/quick_start.html
tsfresh本身官网提供的安装过程比较简单: pip install tsfresh即可。但是安装过程很耗时且安装过程中依赖的其他的python组件,一旦安装报错则只能重新安装,下面是自己的采坑之旅。
1、yum install python-devel 安装 python-devel。 该组件是安装numpy时依赖的组件
2、yum install gcc gcc+ gcc-c++, 安装gcc编译组件。 numpy+SciPy需要依赖这三个组件,已安装可以跳过
3、yum install blas-devel lapack-devel, SciPy组件依赖这两个开发组件。
4、pip install numpy , 安装numpy
5、pip install SciPy , 安装SciPy
6、pip install -U setuptools 升级pip版本,否则tsfresh安装过程中会报错,提示升级版本
7、pip install 出现UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 73: ordinal not i错误信息时
解决办法:
1)在/usr/local/lib/python2.7/site-packages目录下创建 sitecustomize.py