0

我在 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
4

1 回答 1

0

pywt 可以使用 apt-get 作为 Ubuntu 软件包安装:

sudo apt-get install python-pywt

于 2015-11-17T17:18:08.077 回答