2024年4月18日发(作者:)

9

Requirement already satisfied: wcwidth in

/usr/local/lib/python3.6/site-packages (from

pyte->thefuck) (0.1.8)

10

Building wheels for

collected packages: psutil

11

Building wheel for

psutil () ... error

12

ERROR: Command errored out

with exit status 1:

13

command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; [0] = '"'"'/tmp/pip-install-a1ke_1aj/psutil/'"'"'; __file__='"'"'/tmp/pip-install-a1ke_1aj/psutil/'"'"';f=getattr(tokenize,

14

'"'"'open'"'"', open)(__file__);code=().replace('"'"'rn'"'"',

creating build/-x86_64-3.6

15

creating build/-x86_64-3.6/psutil

16

gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-

17

D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -

18

fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/-x86_64-3.6/psutil/_psutil_common.o

psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory

19

#include

20

^~~~~~~~~~

21

compilation terminated.

22

error: command 'gcc'

failed with exit status 1

23

----------------------------------------

24

ERROR: Failed building wheel for

psutil

25

Running clean for

psutil

Failed to build psutil

26

Installing collected packages: psutil, thefuck

27

Running install for

psutil ... error

28

ERROR: Command errored out

with exit status 1:

29

command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; [0] = '"'"'/tmp/pip-install-a1ke_1aj/psutil/'"'"'; __file__='"'"'/tmp/pip-install-a1ke_1aj/psutil/'"'"';f=getattr(tokenize,

30

'"'"'open'"'"', open)(__file__);code=().replace('"'"'rn'"'"', '"'"'n'"'"');();exec(compile(code, __file__, '"'"'exec'"'"'))'

install --record /tmp/pip-record-w70uqb0g/ --single-version-externally-

31

managed --compile --install-headers /usr/local/include/python3.6m/psutil

32

cwd: /tmp/pip-install-a1ke_1aj/psutil/

33

Complete output (44 lines):

……

34

creating build/-x86_64-3.6

35

creating build/-x86_64-3.6/psutil

36

gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-

37

D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -

fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/-x86_64-3.6/psutil/_psutil_common.o

38

psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory

39

#include

40

^~~~~~~~~~

41

compilation terminated.

42

error: command 'gcc'

failed with exit status 1

----------------------------------------

43

ERROR: Command errored out

with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize;