三味线
三味线
Published on 2023-12-20 / 80 Visits
0
0

Python/Win7 ImportError: DLL load failed while importing _socket

Python 3.8 + Win7,执行程序时报错:

Traceback (most recent call last):
  File "F:\toplinker\timp\python\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "F:\toplinker\timp\python\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "F:\toplinker\timp\python\lib\http\server.py", line 92, in <module>
    import email.utils
  File "F:\toplinker\timp\python\lib\email\utils.py", line 29, in <module>
    import socket
  File "F:\toplinker\timp\python\lib\socket.py", line 49, in <module>
    import _socket
ImportError: DLL load failed while importing _socket: 参数错误。

安装补丁后解决问题:

Windows6.1-KB2533623.zip


Comment