首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我不能从终端安装vpython?

为什么我不能从终端安装vpython?
EN

Stack Overflow用户
提问于 2022-03-31 21:59:41
回答 1查看 188关注 0票数 1

我试图使用命令‘’从终端安装vpython,但是它抛出了这个错误。我有python 3.8.9和windows 7,32位。我还尝试过安装像numpy这样的其他库,并且成功地安装了它。

代码语言:javascript
复制
  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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-31 22:09:18

您正在使用python 32位,您应该使用64位1。卸载32位版本并安装64位。我相信你的问题会解决的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71699590

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档