我正在尝试在Kubuntu 14.04上安装PyWavelets,但它无法正常工作......
由于我们在Ubuntu oficial存储库上没有python3-pywt(我们有python-pwt,对于python 2),我尝试用pip安装它,所以我做了:
$ sudo pip3 install pywavelets
我得到了错误:
Downloading/unpacking pywavelets Downloading PyWavelets-0.2.2.zip (528kB): 528kB downloaded Running setup.py (path:/tmp/pip_build_root/pywavelets/setup.py) egg_info for package pywavelets Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_root/pywavelets/setup.py", line 14, in from util import commands File "/tmp/pip_build_root/pywavelets/util/commands.py", line 25, in import templating ImportError: No module named 'templating' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_root/pywavelets/setup.py", line 14, in from util import commands File "/tmp/pip_build_root/pywavelets/util/commands.py", line 25, in import templating ImportError: No module named 'templating'
有什么想法吗?
答案 0 :(得分:0)
在使用Python 3.4的Kubuntu 14.04上,我安装了包(对于Python 3):python3-all-dev
,以及与numpy
和Cython
相关的各个包。
然后我从github repo pywt repo克隆了这个巫术。 之后,我能够做到:
$ python setup.py install --user
构建和安装工作完美,所以我测试了如果每个方面都没问题:
$ python3
>>> import pywt
>>> pywt.test()
. . .
OK (SKIP=1)
<nose.result.TextTestResult run=934 errors=0 failures=0>