Building wheels for collected packages: pywinpty
Building wheel for pywinpty (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pywinpty (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
Running `maturin pep517 build-wheel -i c:\users\aryal\appdata\local\programs\python\python38-32\python.exe`
Compiling proc-macro2 v1.0.36
Compiling unicode-xid v0.2.2
Compiling windows_x86_64_msvc v0.29.0
Compiling libc v0.2.117
Compiling syn v1.0.86
error: could not compile `windows_x86_64_msvc` 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 --message-format json --manifest-path Cargo.toml --release --lib --`
ðŸ\x8d¹ Building a mixed python/rust project
🔗 Found pyo3 bindings
ðŸ\x90\x8d Found CPython 3.8 at c:\users\aryal\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: 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: 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: aborting due to previous error
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\\aryal\\appdata\\local\\programs\\python\\python38-32\\python.exe'] 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我所遇到的错误如下:
采购产品
2)错误:由于两个先前的错误,无法编译windows_x86_64_msvc
3)错误:构建失败的cargo rustc --message-format json --manifest-path Cargo.toml --release --lib --Ÿ‘原maturin失败的原因是:未能通过Cargo构建一个本机库,原因是:用“退出代码:101”完成的货物生成:cargo rustc --message-format json --manifest-path Cargo.toml --release --lib --Ÿ\x8d构建一个混合python/锈病项目Ÿ“找到了pyo3绑定,Ÿ\x90\x8d在CPython错误处找到了CPython 3.8 :链接器link.exe not Found =注意:程序未找到”
link.exe未找到发布于 2022-02-22 22:25:22
当默认的"python“是32位时,就会得到这个错误。卸载并重新安装64位python。
https://stackoverflow.com/questions/70971162
复制相似问题