我在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
答案 0 :(得分:0)
pywt可以使用apt-get:
作为Ubuntu软件包安装 sudo apt-get install python-pywt