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.
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to PIP,
- WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
- How to install multiple Python Packages at once using pip/pip3 command
- Fix - E: Package python3-pip has no installation candidate
- Fix: >>> pip install - SyntaxError: invalid syntax
- Update All Outdated Modules/Packages using pip3
- pip/pip3 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
- pip install see the list of all available versions of package
- How to upgrade pip/pip3 package installer for Python
- Check If Python pip modules are outdated and New Version is Available
- Python: How to install psycopg2 using pip
- Fix Python WARNING: You are using pip version 19 however version 21 is available
- Fix: error: legacy-install-failure Python pip/pip3
- Fix: ModuleNotFoundError: No module named pip
- How to fix PIP Install error: subprocess-exited-with-error
- pip install specific version of a Python Package
- How to list all versions of Python Modules Available using pip/pip3
- How to Upgrade Pandas Package
More Posts:
- Python: NumPy Concatenate Arrays Example - Python
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint) - MacOS
- Alternatives for Notepad++ on Mac in 2021 - NotepadPlusPlus
- [fix] MySQL cj jdbc CommunicationsException: Communications link failure - Java
- Contact Posters in iOS 17 - Personalize your iPhone Contacts - iOS
- [Solved] SharePoint System.IO.FileNotFoundException was unhandled - SharePoint
- git command to remove/unstage files from staging area - Git
- How to escape HTML characters in Java - Java