Sto cercando di installare psutil sul mio raspberry pi e non riesco a mettermi al lavoro. Se io installo pip ottengo questo errore:Raspberry Pi - errore di installazione psutil
psutil/_psutil_linux.c:10:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import
setuptools;__file__='/home/pi/build/psutil/setup.py';exec(compile(open(__file__).read().replace('\r\n ', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-V39ila-record/install-record.txt failed with error code 1 in /home/pi/build/psutil
Storing complete log in /root/.pip/pip.log
Se provo python setup.py costruire dalla directory del file di installazione ottengo questo errore:
psutil/_psutil_linux.c:10:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
se qualcuno mi potrebbe aiutare ottenere questo installato sarebbe fantastico.
Prova [raspberrypi.stackexchange.com] (http://raspberrypi.stackexchange.com) – keyser
@Keyser: La risposta a questa la domanda è la stessa per qualsiasi sistema basato su Linux, non solo per Raspberry Pi. –
@MartijnPieters Sono ben consapevole. E questo è vero per molte domande lì. Non è che lo sto costringendo a migrare :) – keyser