python -m pip install -U pip --user
运行此命令后显示警告
Installing collected packages: wheel, setuptools, pip
WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python312\\Scripts\\wheel.exe' -> 'C:\\Python312\\Scripts\\wheel.exe.deleteme'
为什么我会收到此错误?
“回答为什么我得到这个”:您只想知道为什么它不起作用还是还想解决问题?
根据错误信息,安装失败,因为找不到
C:\Python312\Scripts\wheel.exe.deleteme
根据 由于 OSError 无法安装软件包:[WinError 2] 没有这样的文件或目录,要解决此问题,请尝试以管理员身份运行此命令(打开命令提示符 -> 以管理员身份运行)