简体   繁体   English

在Ubuntu上构建pywt

[英]Building pywt on ubuntu

I have problems building pywt from source on Ubuntu. 我在Ubuntu上从源代码构建pywt时遇到问题。

When I run python setup.py build , I get the following error: 当我运行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

When I run cython --version I get the following output: 当我运行cython --version ,得到以下输出:

Cython version 0.21.1

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

sudo apt-get install python-pywt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM