我没有在pip安装命令中使用--home或--prefix选项,但是这个错误不允许安装一个git仓库。
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Collecting setuptools>=40.8.0
Using cached setuptools-62.3.2-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools
ERROR: Cannot set --home and --prefix together
WARNING: You are using pip version 22.0.4; however, version 22.1 is available.
You should consider upgrading via the 'C:\Users\Rizwan computers\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.```
python -m pip install git+https://github.com/mccoderpy/discord.py-message-components.git@developer
。我能够在我的托管服务器上运行此命令。但是在我的个人电脑上,我不知道我对pip做了什么,它失败了。 - Technical Storm