Problem description
Python executes the installation pip install jupyter command to report this error:
ERROR: Command errored out with exit status 1:
command: 'e:\XXX\python\' 'e:\XXX\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\xxx\AppData\Local\Temp\tmpg764gw5c'
cwd: C:\Users\xxx\AppData\Local\Temp\pip-install-cmivv4zn\pywinpty
Complete output (6 lines):This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via /Checking for Rust toolchain....
----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\XXX\python\' 'e:\XXX\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\xxx\AppData\Local\Temp\tmpg764gw5c' Check the logs for full command output.
Cause analysis
Because of the lack of Rust and Cargo, I used it one after anotherUpgrade pip and setuptoolsNone of them resolved
python -m pip install --upgrade pip python -m pip install --upgrade pip
Re-installing this package is not successful, you can try it
pip install --upgrade pywinpty
Solution
access - The Rust toolchain installer, download and install Rust as directed on the website.
During installation, make sure you choose to add Rust to the system path so that it can be accessed from the command line.rustc
andcargo
After restarting the computer, the installation will be successful
pip install jupyter
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.