【发布时间】:2022-06-17 01:15:16
【问题描述】:
我第一次在新电脑上下载了python(ver 3.10.4)。
我已经下载了包python-certifi-win32,在有人建议它作为 SSL 证书问题的解决方案之后,我遇到了与我遇到的问题类似的问题。
从那时起,pip 完全停止工作,以至于我无法运行pip --version
每次打印相同的错误时,它大多看似垃圾(只是深度堆栈跟踪),但最后的文件不同。
打印日志的开始:
Traceback (most recent call last):
File "C:\Users\---\AppData\Local\Programs\Python\Python310\lib\importlib\_common.py", line 89, in _tempfile
os.write(fd, reader())
File "C:\Users\---\AppData\Local\Programs\Python\Python310\lib\importlib\abc.py", line 371, in read_bytes
with self.open('rb') as strm:
File "C:\Users\---\AppData\Local\Programs\Python\Python310\lib\importlib\_adapters.py", line 54, in open
raise ValueError()
ValueError
During handling of the above exception, another exception occurred:
打印日志的最后一行:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\-----\\AppData\\Local\\Temp\\tmpunox3fhw'
【问题讨论】: