gpt4 book ai didi

python - 从源代码构建 Python 时出现 SSL 错误

转载 作者:行者123 更新时间:2023-12-04 18:36:20 25 4
gpt4 key购买 nike

我正在尝试在我的 Jetson Nano 板(Ubuntu)上安装来自源的特定 Python 版本,并收到一个我不知道如何解决的错误。
我愿意:

  • wget https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz
  • tar
  • zxvf Python-3.5.7.tgz cd Python-3.5.7
  • ./configure --enable-shared --enable-optimizations
  • 制作

  • 一段时间后,我收到:

    0:34:25 load avg: 1.10 [189/391] test_logging--- Logging error --- Got an error: [SSL: SSLV3_ALERT_CERTIFICATE_EXPIRED] sslv3 alert certificate expired(_ssl.c:728) Traceback (most recent call last): File"/home/dlinano/Documents/Python-3.5.7/Lib/logging/handlers.py", line1184, in emith.endheaders() File "/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py", line 1103,in endheadersself._send_output(message_body) File "/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py", line 934,in _send_outputself.send(msg) File "/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py", line 877,in sendself.connect() File "/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py", line 1261,in connectserver_hostname=server_hostname) File "/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py", line 385, inwrap_socket_context=self) File "/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py", line 760, ininitself.do_handshake() File "/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py", line 996, indo_handshakeself._sslobj.do_handshake() File "/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py", line 641, indo_handshakeself._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:728) Callstack: File "/home/dlinano/Documents/Python-3.5.7/Lib/runpy.py",line 193, in _run_module_as_main"main", mod_spec) File "/home/dlinano/Documents/Python-3.5.7/Lib/runpy.py", line 85, in_run_codeexec(code, run_globals) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line1833, in main_in_temp_cwd() File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line1808, in main_in_temp_cwdmain() File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line 873,in mainruntest_accumulate() File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line 863,in runtest_accumulatematch_tests=ns.match_tests, pgo=ns.pgo) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line1108, in runtestpgo=pgo) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py", line1403, in runtest_innertest_runner() File "/home/dlinano/Documents/Python-3.5.7/Lib/test/support/init.py",line 1565, in innerreturn func(*args, **kwds) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/test_logging.py", line4298, in test_mainsupport.run_unittest(*tests) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/support/init.py",line 1901, in run_unittest_run_suite(suite) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/support/init.py",line 1857, in _run_suiteresult = runner.run(suite) File "/home/dlinano/Documents/Python-3.5.7/Lib/test/support/init.py",line 1740, in runtest(result) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py", line 84,in callreturn self.run(*args, **kwds) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py", line122, in runtest(result) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py", line 84,in callreturn self.run(*args, **kwds) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py", line122, in runtest(result) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/case.py", line 653,in callreturn self.run(*args, **kwds) File "/home/dlinano/Documents/Python-3.5.7/Lib/unittest/case.py", line 605,in runtestMethod() File "/home/dlinano/Documents/Python-3.5.7/Lib/test/test_logging.py", line1710, in test_outputlogger.error(msg) Message: 'spдm' Arguments: ()


    我以前从未见过这种情况,互联网上也没有类似的东西

    最佳答案

    尝试使用高于 Python-3.5.7 的任何 Python 版本中可用的最新 keycert.pem 替换 keycert.pem 文件(存在于测试目录下)。
    希望这能解决您的问题。我做了同样的事情,它对我有用:)

    关于python - 从源代码构建 Python 时出现 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65072786/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com