peakutils的Python导入错误

2024-10-01 02:36:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用peakutils库,并使用安装了该库

pip install peakutils

但是当我试图在我的jupyter笔记本中导入相同的内容时,它显示了导入错误 在此之前,我从未遇到过这样的问题。 我没有Python套。在

另外,在this中,第二个答案要求通过

^{pr2}$

显示器

'unset' is not recognised as an internal or external command, operable program or batch file.

我已检查包是否安装在我使用的环境中:

(C:\Users\DELL\Anaconda3) C:\Users\DELL>activate DAND

(DAND) C:\Users\DELL>pip install peakutils
Requirement already satisfied: peakutils in c:\users\dell\anaconda3\envs\dand\li
b\site-packages
Requirement already satisfied: scipy in c:\users\dell\anaconda3\envs\dand\lib\si
te-packages (from peakutils)
Requirement already satisfied: numpy in c:\users\dell\anaconda3\envs\dand\lib\si
te-packages (from peakutils)

Tags: installpipinpackagesrequirementusersdellenvs
2条回答

我浏览了目录

c:\users\dell\anaconda3\envs\dand\lib\site-packages\peakutils

在那里我什么也没找到设置.py,所以我继续查看源代码here 注意到我只有peakutils文件夹设置.py连同舱单和读md.rst. 我只需下载这些文件并将其包含在站点包文件夹中,然后运行

^{pr2}$

在c:\users\dell\anaconda3\envs\dand\lib\site软件包中\ 目录 然后就成功了

我遇到了一个问题,我试图通过Jupyter终端安装库,但是当我回到我的笔记本上尝试“import peakutils”时,它仍然不起作用。所以,我尝试了这个三步走的方法,效果很好。在

!pip install PeakUtils
!pip install msgpack
!pip install  upgrade pip

相关问题 更多 >