http://anonymousoverflow.catsarch.i2p/questions/76078698/how-to-fix-oserror-could-not-get-source-code-error-when-installing-playsound
If you don't want to wait for the fix and you have git installed, you can install the fixed version from my github. pip install git + https : //github.com/killjoy1221/playsound.git Answered Nov 1, 2023 at 17:27 by mattmess1221 1 Votes Just use following pip install playsound == 1.2 . 2 Answered Jan 1, 2024 at 7:03 by Nikita Mandal -1 Votes I also got this error and I fixed it using: python - m pip install playsound Answered Dec 29, 2023 at 18:41 by