我试图使用命令‘’从终端安装vpython,但是它抛出了这个错误。我有python 3.8.9和windows 7,32位。我还尝试过安装像numpy这样的其他库,并且成功地安装了它。
error: subprocess-exited-with-error
× Building wheel for pywinpty (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
Running `maturin pep517 build-wheel -i c:\users\mateo\appdata\local\programs\python\python38-32\python.exe --compatibility off`
Compiling autocfg v1.1.0
Compiling libc v0.2.121
Compiling pyo3-build-config v0.16.2
Compiling proc-macro2 v1.0.36
error: could not compile `proc-macro2` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --manifest-path Cargo.toml --message-format json --release --lib --`
ðŸ\x8d¹ Building a mixed python/rust project
🔗 Found pyo3 bindings
ðŸ\x90\x8d Found CPython 3.8 at c:\users\mateo\appdata\local\programs\python\python38-32\python.exe
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'c:\\users\\mateo\\appdata\\local\\programs\\python\\python38-32\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pywinpty
Failed to build pywinpty
ERROR: Could not build wheels for pywinpty, which is required to
install pyproject.toml-based projects我试图设置路径,我也安装了货物,因为它抛给我另一个错误。我希望通过pip成功地从终端安装vpython
发布于 2022-03-31 22:09:18
您正在使用python 32位,您应该使用64位1。卸载32位版本并安装64位。我相信你的问题会解决的。
https://stackoverflow.com/questions/71699590
复制相似问题