为什么我不能从终端安装 vpython?
Why can't I install vpython from terminal?
我尝试使用命令 'pip install vpython' 从终端安装 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
我尝试输入 PATH 并且还安装了 cargo,因为它给我带来了另一个错误。我希望使用 pip 从终端成功安装 vpython
您正在使用 python 32 位,您应该改用 64 位。卸载 32 位版本并安装 64 位。我相信你的问题会得到解决。
我尝试使用命令 'pip install vpython' 从终端安装 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
我尝试输入 PATH 并且还安装了 cargo,因为它给我带来了另一个错误。我希望使用 pip 从终端成功安装 vpython
您正在使用 python 32 位,您应该改用 64 位。卸载 32 位版本并安装 64 位。我相信你的问题会得到解决。