title: Unable to Install Psutil Linux Bash
body: <p>I have been trying to install Psutil but consistently facing the following error. I saw that there exist many solutions to this problem using sudo install python3-devel but my server only runs bash commands.</p>
  
  <p>Is there a Bash specific solution / command I could use?</p>
  
  <pre><code>Failed to build psutil
  Installing collected packages: psutil
      Running setup.py install for psutil ... error
      ERROR: Command errored out with exit status 1:
       command: /opt/python/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pnv8vynd/psutil/setup.p
  y'"'"'; __file__='"'"'/tmp/pip-install-pnv8vynd/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'
  "'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4zlijwis/install-record.txt -
  -single-version-externally-managed --compile
           cwd: /tmp/pip-install-pnv8vynd/psutil/
      Complete output (41 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.7
      creating build/lib.linux-x86_64-3.7/psutil
      copying psutil/_psbsd.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_psposix.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_pswindows.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/__init__.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_pslinux.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_psaix.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_pssunos.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_common.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/_compat.py -&gt; build/lib.linux-x86_64-3.7/psutil
      copying psutil/tests/test_linux.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_windows.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_process.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_misc.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_memory_leaks.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/__main__.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_system.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_osx.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_posix.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_sunos.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_connections.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_aix.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_bsd.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/runner.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      copying psutil/tests/test_unicode.py -&gt; build/lib.linux-x86_64-3.7/psutil/tests
      running build_ext
      building 'psutil._psutil_linux' extension
      creating build/temp.linux-x86_64-3.7
      creating build/temp.linux-x86_64-3.7/psutil
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_LINUX=1 -DPS
  UTIL_ETHTOOL_MISSING_TYPES=1 -I/opt/python/3.7.5/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.7/psutil/_psutil_commo
  n.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  Cleaning up...
  ERROR: Command errored out with exit status 1: /opt/python/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pi
  p-install-pnv8vynd/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pnv8vynd/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__
  file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-rec
  ord-4zlijwis/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
  </code></pre>