做到 pip install -r requirements.txt 这个步骤出错,前面都正常,在 anaconda 里完成的
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [275 lines of output]
...
TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
6条答案
按热度按时间rryofs0p1#
没装vs吧
2exbekwf2#
没装vs吧
果然是VS的原因
nxagd54h3#
vs
要装哪个版本 vs ,我装了咋还是不行 @LyctorGod
bfrts1fy4#
python3.8安装VS2019同问 @U-DI-Page
eqzww0vc5#
sczxawaw6#
@111zhangsan 请问python3.11安装vs2022,报同样错误,怎么解决?