我想用
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
我想用
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
当您找不到要使用 conda 安装的包时,请尝试使用pip
从 PyPI(Python 包索引)或本地源甚至其他存储库安装它。
由于 PeakUtils 可从 PyPI ( https://pypi.python.org/pypi/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