audio - Python import sounddevice as sd (ImportError: No module name sounddevice) -


i have python code running on raspberry pi b++ uses sounddevice library lets play , record sounds python. have installed modules. can confirm through python command line , enter import sounddevice sd works without errors. have confirmed typing ('modules') in python command line , sounddevice module appears. when running code in independent python program importerror: no module name sounddevice appear.

hope 1 can help.

here included code:

import sounddevice sd

the error:

importerror: no module name sounddevice

hello after alot of trial , error final solved on pip install sounddevice --user.

you need remove --user part command is: pip install sounddevice . installs through out entire system , works.


Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -