Network issues: One of the most common causes is an unstable network connection. Network outages, slow speeds, or firewalls restricting access to external networks can cause downloads to fail.
Permission problem: If you do not have enough permission to install in the default installation path of the system (usually the system directory), the installation will also fail.
Environment configuration issues: Incorrect pip configuration may cause installation failure.
Software version conflict: The installed version of Python is not compatible with the version of the library to be installed. Some newer libraries may not support older versions of Python
solution
Using a virtual environment can effectively avoid many installation problems and environmental conflicts. You can create a virtual environment using venv (Python's built-in virtual environment creation tool) or conda (Anaconda environment management tool).
python -m venv myenv
Failed to install numpy and other libraries in the computer terminal, why? What is the recommended installation path