PyTorch 安装错误 [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC]

问题描述 投票:0回答:0

我一直在尝试安装 PyTorch,这样我就可以尝试使用 Whisper 语音通过 GPU 发短信。 安装 Cuda 11.7 然后使用此命令:pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

它开始下载 2.3 GB 的文件,但我总是在下载的不同阶段收到错误。一次是 0.4 / 2.4 GB,另一次是 1.0/2.4 GB。

我想知道我是不是做错了什么,还是因为我的互联网连接。 你能帮我吗?

ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
    data = self.__fp.read(amt)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 463, in read
    n = self.readinto(b)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 507, in readinto
    n = self.fp.readinto(b)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2633)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper

尝试安装 PyTorch 以将耳语语音转为文本。

python pytorch openai-whisper
© www.soinside.com 2019 - 2024. All rights reserved.