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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -