我在Ubuntu上从源代码构建pywt时遇到了问题。
当我运行python setup.py build时,我得到以下错误:
running build
running build_py
running build_ext
Cython is not installed. Using compiled file: src/_pywt.pyx
building 'pywt._pywt' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_EXTENSION -Isrc -I/usr/local/include/python2.7 -c src/_pywt.c -o build/temp.linux-x86_64-2.7/src/_pywt.o
gcc: error: src/_pywt.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4当我运行cython --version时,我得到以下输出:
Cython version 0.21.1发布于 2015-11-18 01:18:08
可以使用apt-get将pywt安装为Ubuntu包:
sudo apt-get install python-pywt
https://stackoverflow.com/questions/28072386
复制相似问题