1

I am trying to use peakutils library and have installed that using

pip install peakutils

but when I attempt to import same in my jupyter notebook, it shows the import error Before this, I have never faced such an issue. I don't have a PYTHONPATH set.

Also, in this the second answer asks for unsetting the python path by

unset PYTHONPATH

displays

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

I have checked that the package is installed in the environment I am using:

(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)
Community
  • 1
  • 1
Urja Pawar
  • 1,087
  • 1
  • 15
  • 29

2 Answers2

1

I ran into the problem where I tried to install the library through the Jupyter terminal, but when I went back to my notebook to try 'import peakutils' it still didn't work. So, I tried this three step approach and it worked well.

!pip install PeakUtils
!pip install msgpack
!pip install --upgrade pip
Matthew Mccann
  • 164
  • 2
  • 9
0

I navigated through the directory

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

and there I didn't find any setup.py, so I proceeded to the source code here and noticed that I only had the folder peakutils and need to have setup.py along with manifest and readmd.rst. I simply downloaded the files and included them in the folder site-packages and then ran

python setup.py install

in the c:\users\dell\anaconda3\envs\dand\lib\site-packages\ directory and then it worked out

Urja Pawar
  • 1,087
  • 1
  • 15
  • 29