Last Modified : Tuesday, Aug 13, 2024
Error
error: subprocess-exited-with-error x python setup.py bdist_wheel did not run successfully. exit code: 1 164 lines of outputl /home/ubuntu/miniconda3/envs/test/lib/python3.8/site-packages/setuptools/_init__.py:85:_DeprecatedInstaller: setuptools.installer and fetch_build_ eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try pip install --use-pep517'. !! running edist ud egs dist. setup requires) running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/texterrors build/lib.linux-x86_64-cpython-38/texterrors copying texterrors/_init__.py build/lib.linux-x86_64-cpython-38/texterrors running build_ext
Why did this error
This error occurs when you are trying to pip install something and the os requirements are not installed, for eg, you haven't installed c++, or node js which is required by python packages.
Solve
First read through the entire error log, see what is an actual issue, most of time, the error has nothing to do with python or pip, you just need to go through the logs and see what is cauing this error.
Then first resolve that error and then try to pip install again.
In my case i got this error because i didn't had c++ installed, so i installed it and it fixed the error.
sudo apt-get install build-essential
linux
subprocess
python
pip