我想用
import peakutils.peak in python (ubuntu 16.04)
我在python中使用anaconda包。我怎样才能使用conda下载peakutils包。
我用
conda install -c cbetters peakutils=1.0.3
但我得到的错误是:
import peakutils.peak
ImportError: No module named peakutils.peak
答案 0 :(得分:0)
如果找不到要使用conda安装的软件包,请尝试使用pip
从PyPI(Python软件包索引)或本地源甚至其他存储库安装它。
由于可以从PyPI(https://pypi.python.org/pypi/PeakUtils)获得PeakUtils。这就是我刚刚看到的样子(UPPER /小写似乎并不重要):
BarryPye@workstation ~ $ pip install peakutils
Collecting peakutils
Downloading PeakUtils-1.1.0.tar.gz
Requirement already satisfied: numpy in /local/Apps/anaconda/lib/python2.7/site-packages (from peakutils)
Requirement already satisfied: scipy in /local/Apps/anaconda/lib/python2.7/site-packages (from peakutils)
Building wheels for collected packages: peakutils
Running setup.py bdist_wheel for peakutils ... done
Stored in directory: /local/BarryPye/.cache/pip/wheels/cb/17/d9/ae7f621c1e24ce2e4da18ca9f01b032f4474bb1b04822d886e
Successfully built peakutils
Installing collected packages: peakutils
Successfully installed peakutils-1.1.0