Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
367 views
in Technique[技术] by (71.8m points)

python - Jupyter lab: module not found though package already installed

This is the complaint that I got:

   ~DocumentsIT2020 SUM32933Resemblyzer
esemblyzeraudio.py in <module>
          4 from typing import Optional, Union
          5 import numpy as np
    ----> 6 import webrtcvad
          7 import librosa
          8 import struct

ModuleNotFoundError: No module named 'webrtcvad'

After checking solutions, I tried sys.executable and sys.path then here are the outputs:

C:Anacondapython.exe


['C:\Users\Jocelyn Huang\Documents\IT\2020 SUM\32933\Resemblyzer', 'C:\Anaconda\python37.zip', 'C:\Anaconda\DLLs', 'C:\Anaconda\lib', 'C:\Anaconda', '', 'C:\Anaconda\lib\site-packages', 'C:\Anaconda\lib\site-packages\win32', 'C:\Anaconda\lib\site-packages\win32\lib', 'C:\Anaconda\lib\site-packages\Pythonwin', 'C:\Anaconda\lib\site-packages\IPython\extensions', 'C:\Users\Jocelyn Huang\.ipython']

Then I check the root package, It has "webrtcvad": pip list 1 pip list 2

I also tried the conda env, though the package is also available, I still received the same complaint in this env: conda env package conda env package 2

After many attempts, I still cannot figure out what it going on here, excuse my poor knowledge about this...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Follow the below steps:

  • Uninstall webrtcvad pip uninstall webrtcvad conda uninstall webrtcvad
  • Take restart of your system
  • Install webrtcvad again conda install webrtcvad

Also to check package installed with conda you need to do conda list instead of pip list

I don't really have the answer as to why this happens, but recently it happened with me and steps shared above resolved it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.6k users

...