error: subprocess-exited-with-error
Example:
% pip install tts
INFO:
########### EXT COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: unsupported
Compiler : clang
CPU baseline :
Requested : optimization disabled
Enabled : none
Flags : none
Extra checks: none
Requested : optimization disabled
CPU dispatch :
Enabled : none
Generated : none
INFO: CCompilerOpt.cache_flush[817] : write cache to path -> /private/var/folders/k6/9fyd0vd51mz67d9jtp6mh7400000gn/T/pip-install-n0o9xg31/numpy_20771321dc8e40ec9b9230fbdd8d12fa/build/temp.macosx-10.9-universal2-3.11/ccompiler_opt_cache_ext.py
INFO:
########### CLIB COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: unsupported
Compiler : clang
CPU baseline :
Requested : optimization disabled
Enabled : none
Flags : none
Extra checks: none
Requested : optimization disabled
CPU dispatch :
Enabled : none
Generated : none
INFO: CCompilerOpt.cache_flush[817] : write cache to path -> /private/var/folders/k6/9fyd0vd51mz67d9jtp6mh7400000gn/T/pip-install-n0o9xg31/numpy_20771321dc8e40ec9b9230fbdd8d12fa/build/temp.macosx-10.9-universal2-3.11/ccompiler_opt_cache_clib.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

If you are trying to install a package using the pip install command and you get an error subprocess-exited-with-error then it could be because of the following reasons.
Reasons and Fixes:
- Make sure that the subprocess does not contain syntax errors.
- Make sure the references are not non-existent files or paths.
- Make sure you have the required permissions to execute the sub-process.
- Make sure that the package you are trying to install is supported by your operating system (Windows/Linux/macOS)
- Make sure that if there are any external dependencies needed for the subprocess is missing.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!