“error: command ‘GCC’ failed with exit status 1”,
when installing psutil package todaylooked up a lot of methods did not resolve, the final is to execute the following command to resolve:
$ xcode-select --install
specific error as follows:
➜ ~ pip install psutil
Collecting psutil
Using cached https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz
Building wheels for collected packages: psutil
Building wheel for psutil (setup.py) ... error
ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-install-72tjomie/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 /private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-wheel-w8plfncs --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_common.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psaix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_compat.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
creating build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/runner.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/psutil
creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch
creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch/osx
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_common.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_common.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: 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
ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-install-72tjomie/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 /private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-record-wr1nt_db/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_common.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psaix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_compat.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.9-x86_64-3.7/psutil
creating build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/runner.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
copying psutil/tests/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/psutil/tests
running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/psutil
creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch
creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch/osx
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_common.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_common.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-install-72tjomie/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 /private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-record-wr1nt_db/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/lc/19sy67z94fddlb57t50zd7_c0000gn/T/pip-install-72tjomie/psutil/
p>
div>
Read More:
- Python MAC installation mysqlclient package error “error: Command ‘clang’ failed with exit status 1” solution
- Python Mac installs mysqlclient package error “error: command’clang’ failed with exit status 1” solution
- Ubuntu16.04 pip3 install PyAudio 出错:error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Error: Command ‘arm linux gnueabihf GCC’ failed with exit status 1, raspberry pie install paramiko
- Command errored out with exit status 1: python setup.py egg_info Check the logs for full command ou
- Python installation problem: error: Command erred out with exit status 1:
- Python error: command error out with exit status 1:
- command ‘gcc‘ failed with exit status 4
- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm
- Error: command error out with exit status 1: Python when installing mysqlclient in centos7 setup.py egg_ info Check
- Error: command error out with exit status 1: Python setup.py egg_ inf
- Error: command error out with exit status 1: Python when installing mysqlclient in django2.0 setup.py egg_ info
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- Error: command error out with exit status 1: Python setup.py egg_ info Check the ”
- error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1, Raspberry Pi installation paramiko
- cl.exe Error resolution of ‘failed with exit status 2
- Install python’s C extension compilation environment under windows (solve “error: command’cl.exe’ failed: No such file or directory”)
- To solve Anaconda error: command error out with exit status 1
- Install Python C extension compiler environment under windows (solve “error: command” cl.exe ‘ failed: No such file or directory”)