简体   繁体   中英

OSError: [WinError 126] Module not found

I have a program that should play a mp.3 file from my computer via python-vlc but everytime I run it I get that error message. Does anyone know what I have to do?

import vlc

player = vlc.MediaPlayer("C://Users/Flo/Desktop/Python/Mambo/nevergonnagiveyouup.mp3")
player.play() 

your mp3 file was not found by python because of '//' replace this to '/'.

import vlc 
player = vlc.MediaPlayer("C:/Users/Flo/Desktop/Python/Mambo/nevergonnagiveyouup.mp3")    
player.play() 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM