Почему я не могу установить vpython с терминала?

Я попытался установить vpython из терминала с помощью команды «pip install 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, и я также установил груз, потому что он выдал мне другую ошибку. Я ожидаю успешно установить vpython из терминала с помощью pip

🤔 А знаете ли вы, что...
С Python можно создавать ботов для социальных сетей и мессенджеров.


1
25
1

Ответ:

Решено

Вы используете 32-битный Python, вместо этого вы должны использовать 64-битный. Удалите 32-битную версию и установите 64-битную. Я верю, что ваша проблема будет решена.