I am trying to run my Python code in raspberry Pi 3 and I keep getting the error: ImportError: no module named playsound. I have already successfully installed playsound (using the command: pip install playsound).
The problem according to the best of my knowledge, it is the environment, by default the raspberry pi is running python2 on the command terminal, and I guess you are running your program on thonny idle or the python3 idle, so what you are doing is your are using python2 environment to install playsound(Terminal) and then using the python3 environment to run your program.
So what I did is i used this command on the terminal
sudo apt-get remove python2.7 --purge
sudo apt-get install python3.5
pip3 install playsound
and behold no module error.
ImportError: no module named playsound