Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 当试图解决Python3证书问题时,为什么运行;安装证书。命令";文件不起作用?_Python 3.x_Openssl_Ssl Certificate_Youtube Dl - Fatal编程技术网

Python 3.x 当试图解决Python3证书问题时,为什么运行;安装证书。命令";文件不起作用?

Python 3.x 当试图解决Python3证书问题时,为什么运行;安装证书。命令";文件不起作用?,python-3.x,openssl,ssl-certificate,youtube-dl,Python 3.x,Openssl,Ssl Certificate,Youtube Dl,好几天来,我一直为一个问题感到沮丧。在尝试了所有我能在网上找到的建议解决方案后,我别无选择,只能在这里寻求帮助。我真的需要你的建议。提前谢谢 有关我的笔记本电脑、软件和软件包版本的一些信息: Mac OS 10.14.6(莫哈韦) Python 3.7.7 OpenSSL 1.1.1 Tcl/Tk 8.6 TLS 1.2 2019年11月28日 我一直很难用youtube dl下载视频。例如,在执行youtube dl后,我会收到以下错误消息: MacBook-Pro:~ hui$ yout

好几天来,我一直为一个问题感到沮丧。在尝试了所有我能在网上找到的建议解决方案后,我别无选择,只能在这里寻求帮助。我真的需要你的建议。提前谢谢

有关我的笔记本电脑、软件和软件包版本的一些信息:

  • Mac OS 10.14.6(莫哈韦)
  • Python 3.7.7
  • OpenSSL 1.1.1
  • Tcl/Tk 8.6
  • TLS 1.2
  • 2019年11月28日
我一直很难用youtube dl下载视频。例如,在执行youtube dl后,我会收到以下错误消息:

MacBook-Pro:~ hui$ youtube-dl https://www.youtube.com/watch?v=N1SLd93oF5w
[youtube] N1SLd93oF5w: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
谁能给我一些建议来解决这个问题?非常感谢您的关注和帮助

Last login: Tue Mar 24 17:31:27 on ttys000
/Applications/Python\ 3.7/Install\ Certificates.command ; exit;
MacBook-Pro:~ hui$ /Applications/Python\ 3.7/Install\ Certificates.command ; exit;
 -- pip install --upgrade certifi
Looking in indexes: https://pypi.python.org/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/certifi/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/certifi/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/certifi/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/certifi/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/certifi/
Could not fetch URL https://pypi.python.org/simple/certifi/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/certifi/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) - skipping
Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2019.11.28)
 -- removing any existing file or link
 -- creating symlink to certifi certificate bundle
 -- setting permissions
 -- update complete
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]