[App server 1.2] pip install anvil-app-server error

I got the following error when run pip install anvil-app-server in the fresh VPS Ubuntu 18.04
Does anyone have the same issue?

copying psutil/tests/ **main** .py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/ **init** .py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.6/psutil/tests
running build_ext
building 'psutil. <em>psutil_linux' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/psutil
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID</em>
T=4 -DPSUTIL_VERSION=572 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/include/python3.6m
-I/home/tony/venv/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psut
il/_psutil_common.o
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
C compiler or Python headers are not installed on this system. Try to run:
sudo apt-get install gcc python3-dev
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/tony/venv/bin/python3 -u -c 'import sys, setupt
ools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nhmrc04p/psutil/setup.py'"'"';  **file** ='"'"'/tm
p/pip-install-nhmrc04p/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-sadb45gi/install-record.txt --single-version-externally-manage
d --compile --install-headers /home/tony/venv/include/site/python3.6/psutil Check the logs for full
command output.

@Tony.Nguyen it looks like psutil is a new dependency which requires a C compiler to install

1 Like

Thanks so much @ahawes, sudo apt-get install gcc python3-dev does solve the issue.

1 Like