this python program saves YouTube video converts it to mp3 and deletes the video. it works perfect on my pc, but when i make of it an exe file and send it to my friend, it doesn't work on his pc it says 'py' is not recognized as an internal or external command
is there a way i can fix it without changing the command itself, because it works perfectly except that issue
import os
link_url = input("Enter url: ")
os.system('cmd /c "py -m youtube_dl --restrict-filenames --ignore-errors -x --audio-format mp3 %s"' %link_url)
input("Pres anything to exit: ")