title: Installation of psutil in virtualenv at Ubuntu16.04
body: <p>What could be wrong with my installation?</p>
  
  <p>I am trying to install <a href="https://pypi.org/project/psutil/" rel="nofollow noreferrer">psutil</a> in <code>virtualenv</code> at my Ubuntu16.04.</p>
  
  <p>Should be quite straightforward as <code>pip3 install psutil</code>.</p>
  
  <p>But I have error as</p>
  
  <pre><code>Collecting psutil
    Using cached https://files.pythonhosted.org/packages/e3/58/0eae6e4466e5abf779d7e2b71fac7fba5f59e00ea36ddb3ed690419ccb0f/psutil-5.4.8.tar.gz
  Building wheels for collected packages: psutil
    Running setup.py bdist_wheel for psutil ... error
    Complete output from command /home/coie/virtualenvironment/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrbka3xy/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-29fvmytd --python-tag cp35:
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/psutil
    copying psutil/__init__.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_pslinux.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_pssunos.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_pswindows.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_psaix.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_psbsd.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_exceptions.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_psosx.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_common.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_compat.py -&gt; build/lib.linux-x86_64-3.5/psutil
    copying psutil/_psposix.py -&gt; build/lib.linux-x86_64-3.5/psutil
    creating build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_contracts.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_linux.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_misc.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/__init__.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_windows.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_posix.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_aix.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_system.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_osx.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_unicode.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_bsd.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_memory_leaks.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_sunos.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/__main__.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_process.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    copying psutil/tests/test_connections.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
    running build_ext
    building 'psutil._psutil_linux' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/psutil
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=548 -DPSUTIL_LINUX=1 -I/usr/include/python3.5m -I/home/coie/virtualenvironment/venv/include/python3.5m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.5/psutil/_psutil_common.o
    psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
    ----------------------------------------
    Failed building wheel for psutil
    Running setup.py clean for psutil
  Failed to build psutil
  Installing collected packages: psutil
    Running setup.py install for psutil ... error
      Complete output from command /home/coie/virtualenvironment/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrbka3xy/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-ow0brxi_/install-record.txt --single-version-externally-managed --compile --install-headers /home/coie/virtualenvironment/venv/include/site/python3.5/psutil:
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.5
      creating build/lib.linux-x86_64-3.5/psutil
      copying psutil/__init__.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_pslinux.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_pssunos.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_pswindows.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_psaix.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_psbsd.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_exceptions.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_psosx.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_common.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_compat.py -&gt; build/lib.linux-x86_64-3.5/psutil
      copying psutil/_psposix.py -&gt; build/lib.linux-x86_64-3.5/psutil
      creating build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_contracts.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_linux.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_misc.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/__init__.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_windows.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_posix.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_aix.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_system.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_osx.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_unicode.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_bsd.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_memory_leaks.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_sunos.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/__main__.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_process.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      copying psutil/tests/test_connections.py -&gt; build/lib.linux-x86_64-3.5/psutil/tests
      running build_ext
      building 'psutil._psutil_linux' extension
      creating build/temp.linux-x86_64-3.5
      creating build/temp.linux-x86_64-3.5/psutil
      x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=548 -DPSUTIL_LINUX=1 -I/usr/include/python3.5m -I/home/coie/virtualenvironment/venv/include/python3.5m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.5/psutil/_psutil_common.o
      psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
      compilation terminated.
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
      ----------------------------------------
  Command "/home/coie/virtualenvironment/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrbka3xy/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-ow0brxi_/install-record.txt --single-version-externally-managed --compile --install-headers /home/coie/virtualenvironment/venv/include/site/python3.5/psutil" failed with error code 1 in /tmp/pip-install-lrbka3xy/psutil/
  </code></pre>