首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >peakutils.peak在python中的conda安装

peakutils.peak在python中的conda安装
EN

Stack Overflow用户
提问于 2017-05-16 15:55:24
回答 1查看 2.4K关注 0票数 0

我想用

代码语言:javascript
运行
复制
import peakutils.peak in python (ubuntu 16.04)

我在python中使用anaconda包。如何使用conda下载peakutils包?

我使用

代码语言:javascript
运行
复制
conda install -c cbetters peakutils=1.0.3

但我得到的错误是:

代码语言:javascript
运行
复制
import peakutils.peak
ImportError: No module named peakutils.peak
EN

回答 1

Stack Overflow用户

发布于 2017-08-09 00:40:11

如果您找不到要与conda一起安装的包,那么可以尝试使用pip从PyPI ( Python package Index)、本地源甚至其他存储库安装它。

因为PyPI (https://pypi.python.org/pypi/PeakUtils)提供了PeakUtils。下面是我刚才看到的(大小写似乎都无关紧要):

代码语言:javascript
运行
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43995531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档