我想用
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
发布于 2017-08-09 00:40:11
如果您找不到要与conda一起安装的包,那么可以尝试使用pip
从PyPI ( Python package Index)、本地源甚至其他存储库安装它。
因为PyPI (https://pypi.python.org/pypi/PeakUtils)提供了PeakUtils。下面是我刚才看到的(大小写似乎都无关紧要):
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
https://stackoverflow.com/questions/43995531
复制相似问题