None None None No such file:python312.zip

我在Windows11的cmd中键入:

pip show pip

但它输出:

None None None
<class 'KeyError'> '_PIP_USE_IMPORTLIB_METADATA' <traceback object at 0x000001915F078A00>
None None None
<class 'NotADirectoryError'> [WinError 267] 目录名称无效。: 'D:\\python3.12.2\\Scripts\\pip.exe' <traceback object at 0x000001915C17C840>
<class 'AttributeError'> 'FastLookup' object has no attribute '_FastLookup__names' <traceback object at 0x000001915EC73B80>
None None None
<class 'FileNotFoundError'> [WinError 2] 系统找不到指定的文件。: 'D:\\python3.12.2\\python312.zip' <traceback object at 0x000001915F0D9280>
<class 'FileNotFoundError'> [WinError 3] 系统找不到指定的路径。: 'D:\\python3.12.2\\python312.zip' <traceback object at 0x000001915F1CE340>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\python312.zip' <traceback object at 0x000001915F1CCEC0>
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D4680>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D76C0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\AppData\\Roaming\\Python\\Python312\\site-packages\\gobject-0.1.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D7A40>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\AppData\\Roaming\\Python\\Python312\\site-packages\\gobject-0.1.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D7340>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\Brotli-1.1.0.dist-info\\requires.txt' <traceback object at 0x000001915F2084C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\Brotli-1.1.0.dist-info\\requires.txt' <traceback object at 0x000001915F208180>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\bs4-0.0.2.dist-info\\requires.txt' <traceback object at 0x000001915F203100>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\certifi-2024.2.2.dist-info\\requires.txt' <traceback object at 0x000001915F203980>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\certifi-2024.2.2.dist-info\\requires.txt' <traceback object at 0x000001915F2016C0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\cffi-1.16.0.dist-info\\requires.txt' <traceback object at 0x000001915F203980>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\charset_normalizer-3.3.2.dist-info\\requires.txt' <traceback object at 0x000001915F1F9580>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\colorama-0.4.6.dist-info\\requires.txt' <traceback object at 0x000001915F202140>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\colorama-0.4.6.dist-info\\requires.txt' <traceback object at 0x000001915F200F00>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\django_weasyprint-2.3.0.dist-info\\requires.txt' <traceback object at 0x000001915F1F9BC0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\fire-0.6.0.dist-info\\requires.txt' <traceback object at 0x000001915F2026C0>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\idna-3.6.dist-info\\requires.txt' <traceback object at 0x000001915F240B40>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\idna-3.6.dist-info\\requires.txt' <traceback object at 0x000001915F240D40>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\MouseInfo-0.1.3.dist-info\\requires.txt' <traceback object at 0x000001915C125A00>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\numpy-1.26.4.dist-info\\requires.txt' <traceback object at 0x000001915F201700>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\numpy-1.26.4.dist-info\\requires.txt' <traceback object at 0x000001915F201300>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\opencv_python-4.9.0.80.dist-info\\requires.txt' <traceback object at 0x000001915F1F9100>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\opencv_python_headless-4.9.0.80.dist-info\\requires.txt' <traceback object at 0x000001915F227340>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pdf2docx-0.5.8.dist-info\\requires.txt' <traceback object at 0x000001915F2439C0>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F2250C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F227080>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pretty_errors-1.2.25.dist-info\\requires.txt' <traceback object at 0x000001915F200540>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyAutoGUI-0.9.54.dist-info\\requires.txt' <traceback object at 0x000001915F241240>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pycparser-2.22.dist-info\\requires.txt' <traceback object at 0x000001915F1FBCC0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pycparser-2.22.dist-info\\requires.txt' <traceback object at 0x000001915F1F9F80>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pygame-2.5.2.dist-info\\requires.txt' <traceback object at 0x000001915F2270C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pygame-2.5.2.dist-info\\requires.txt' <traceback object at 0x000001915F224680>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyGetWindow-0.0.9.dist-info\\requires.txt' <traceback object at 0x000001915F1F9180>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyMsgBox-1.0.9.dist-info\\requires.txt' <traceback object at 0x000001915F225380>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyMsgBox-1.0.9.dist-info\\requires.txt' <traceback object at 0x000001915F226800>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyMuPDF-1.24.2.dist-info\\requires.txt' <traceback object at 0x000001915F1FA240>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyMuPDFb-1.24.1.dist-info\\requires.txt' <traceback object at 0x000001915F209480>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyMuPDFb-1.24.1.dist-info\\requires.txt' <traceback object at 0x000001915F20A780>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyOpenGL-3.1.7.dist-info\\requires.txt' <traceback object at 0x000001915F1A45C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyOpenGL-3.1.7.dist-info\\requires.txt' <traceback object at 0x000001915F1E4C00>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pyperclip-1.8.2.dist-info\\requires.txt' <traceback object at 0x000001915C172780>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pyperclip-1.8.2.dist-info\\requires.txt' <traceback object at 0x000001915F1A7700>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5-5.15.10.dist-info\\requires.txt' <traceback object at 0x000001915F224980>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5Designer-5.14.1.dist-info\\requires.txt' <traceback object at 0x000001915F1FADC0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5Designer-5.14.1.dist-info\\requires.txt' <traceback object at 0x000001915F1FBE40>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5_Qt5-5.15.2.dist-info\\requires.txt' <traceback object at 0x000001915F227480>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5_Qt5-5.15.2.dist-info\\requires.txt' <traceback object at 0x000001915F225B40>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5_sip-12.13.0.dist-info\\requires.txt' <traceback object at 0x000001915F2254C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt5_sip-12.13.0.dist-info\\requires.txt' <traceback object at 0x000001915F227A40>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt6-6.6.1.dist-info\\requires.txt' <traceback object at 0x000001915F224D80>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt6_Qt6-6.6.3.dist-info\\requires.txt' <traceback object at 0x000001915F241C40>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt6_Qt6-6.6.3.dist-info\\requires.txt' <traceback object at 0x000001915F243CC0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt6_sip-13.6.0.dist-info\\requires.txt' <traceback object at 0x000001915F1FAF80>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyQt6_sip-13.6.0.dist-info\\requires.txt' <traceback object at 0x000001915F1FB780>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyRect-0.2.0.dist-info\\requires.txt' <traceback object at 0x000001915F1FA640>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyRect-0.2.0.dist-info\\requires.txt' <traceback object at 0x000001915F1FAF80>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\PyScreeze-0.1.30.dist-info\\requires.txt' <traceback object at 0x000001915F1F86C0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\python_docx-1.1.2.dist-info\\requires.txt' <traceback object at 0x000001915F241480>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pytweening-1.2.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D4800>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pytweening-1.2.0.dist-info\\requires.txt' <traceback object at 0x000001915F1D7880>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pywin32-306.dist-info\\requires.txt' <traceback object at 0x000001915F241840>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pywin32-306.dist-info\\requires.txt' <traceback object at 0x000001915F240800>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\six-1.16.0.dist-info\\requires.txt' <traceback object at 0x000001915F2128C0>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\six-1.16.0.dist-info\\requires.txt' <traceback object at 0x000001915F2137C0>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\soupsieve-2.5.dist-info\\requires.txt' <traceback object at 0x000001915F241D40>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\soupsieve-2.5.dist-info\\requires.txt' <traceback object at 0x000001915F243180>
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\sympy-1.12.dist-info\\requires.txt' <traceback object at 0x000001915F240CC0>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\typing_extensions-4.11.0.dist-info\\requires.txt' <traceback object at 0x000001915F203F40>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\typing_extensions-4.11.0.dist-info\\requires.txt' <traceback object at 0x000001915F202A00>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\tzdata-2024.1.dist-info\\requires.txt' <traceback object at 0x000001915F201200>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\tzdata-2024.1.dist-info\\requires.txt' <traceback object at 0x000001915F203F40>
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\webencodings-0.5.1.dist-info\\requires.txt' <traceback object at 0x000001915F213340>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\webencodings-0.5.1.dist-info\\requires.txt' <traceback object at 0x000001915F208580>
None None None
None None None
None None None
None None None
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F29E080>
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\requires.txt' <traceback object at 0x000001915F29E280>
None None None
<class 'FileNotFoundError'> [Errno 2] No such file or directory: 'D:\\python3.12.2\\Lib\\site-packages\\pip-24.0.dist-info\\direct_url.json' <traceback object at 0x000001915C15D8C0>
None None None
Name: pip
Version: 24.0
Summary: The PyPA recommended tool for installing Python packages.
Home-page:
Author:
Author-email: The pip developers <distutils-sig@python.org>
License: MIT
Location: D:\python3.12.2\Lib\site-packages
Requires:
Required-by:

虽然最后正确了,但输出了很多None<class 'FileNotFoundError'>
我尝试以下的,也输出了很多None<class 'FileNotFoundError'>

pip install --upgrade pip setuptools
pip install requests

修复了python,但没有用。
python版本:3.12.2

Some third-party modules will not work with Python 3.12. Like one of the speedtest modules. I recommend you get Python 3.11.

This seems to be reporting a problem with Pip itself, however. It looks to me as if some context manager within the Pip code has decided for some reason to log the exc_type, exc_value, traceback triples passed to __exit__, to the console.