thank you for your suggestion, maurer. surprisingly it works. I tried to download chrome instead my previous browser is firefox, just download it and try to do a simple youtube-dl command and it works.
but I still dont know why when I running a command 'youtube-dl -U' then got a message 'ERROR: can't find the current version. Please try again later' maybe it needs a sudo password. Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, May 1, 2020 1:00 AM, Dieter Maurer <die...@handshake.de> wrote: > separated wrote at 2020-4-29 21:11 +0000: > > > I just bought a rdp from someone and try to install python in order to > > running youtube-dl but when I just run a simple youtube-dl command like > > 'youtube-dl [youtube video url]' it got me this message : > > ERROR: Unable to download webpage: <urlopen error [SSL: > > CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> (caused > > by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate > > verify failed (_ssl.c:600)'),)) > > Either the ssl certificate provided by the server is invalid > or Python lacks the necessary CA (= "Certificate Authority") root > certificates for its verification. > > I would use a browser to access the url and see what it says > about the used certificate. > > Python typically uses the same certificates also used by > browsers. I do not know Windows and cannot tell you where those > certificates are located and how to add additional root certificates. -- https://mail.python.org/mailman/listinfo/python-list