

However, there are a few reasons why this may not always happen. On most modern platforms, when you install Python’s package manager, pip, it will also set up a compiler environment and the associated packages. If there isn’t a compiler present on your system, the installation will fail. Low-level languages like C or Rust, which Python libraries occasionally include for high-performance processing, need to be compiled and optimized before being executable. Python is a high-level, interpreted language that can run with only the Python interpreter itself present. Some Python libraries, especially those used for scientific computing, need to compile additional code locally on your machine after being installed. This particular error was the result of trying to install pd-dwi, a Python library used in chemotherapy research, using pip install pd-dwi. Hint: See above for output from the failure. Note: This is an issue with the package mentioned above, not pip.

× Encountered error while trying to install package.

Note: This error originates from a subprocess, and is likely not a problem with pip. Output x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -I/usr/local/lib/python3.10/dist-packages/numpy/core/include -I/usr/include/python3.10 -c radiomics/src/_cmatrices.c -o build/temp.linux-x86_64-3.10/radiomics/src/_cmatrices.oĮrror: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
