x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I./common -I/usr/include/python3.8 -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.8/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99
pycocotools/_mask.c:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
The python version I use is 3.8 (replaced according to your version).
Solution:
Execute sudo apt install python3.8-dev
Read More:
- [Solved] ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- [Solved] pycocotools Install Error: ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing
- [Solved] Win10 Install pyav Error: ERROR: Failed building wheel for avFailed to build av. ERROR: Could not build wheel
- [Solved] Pycharm Use pip to install package error: no such option –build-dir
- [Solved] Ubuntu18.04 Install pyqt5 error: Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-92
- [Solved] mmdetection Error: ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x
- [Solved] Run sudo python setup.py install Error: error: error in setup.cfg: command ‘build‘ has no such option ‘i18
- [Solved] transformers Install Error: error can‘t find rust compiler
- TensorFlow Install Error: Could not load dynamic library ‘*****.dll‘; dlerror: ********.dll not found
- NPM install Error: gyp ERR! stack Error: Could not find any Python installation to use
- Apex install error: the environment is not compatible
- Error:Could not install packages due to an OSError:[WinError 5] Access denied
- [Solved] librosa Install Error: ImportError: DLL load failed: Could Not Found
- MYSQL-python Install EnvironmentError: mysql_config not found
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- [Solved] Windows pycrypto Install Error: ERROR: Failed building wheel for pycrypto
- How to Solve PIP Install fasttext Error
- Mac install python_Levenshtein Error: error: command ‘clang‘ failed with exit status 1
- Python 2.7: How to Install PIP
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks