Installed pip manually.
$ sudo yum install python3-pip
Now setup is stuck in loop.
Is there a known issue with Cyberpanel setup because I have never come across these issues before ?
error: command ‘gcc’ failed with exit status 1
ERROR: Failed building wheel for pyxattr
Running setup.py clean for pyxattr
Failed to build mysqlclient psutil pygpgme pyxattr
Installing collected packages: pyxattr, pyudev, pyotp, pygpgme, py3dns, psutil, prettytable, pexpect, pbr, parsedatetime, paramiko, mysqlclient, mock, jsonpatch, Jinja2, IPy, ipaddress, google-auth-oauthlib, google-api-python-client, future, funcsigs, enum34, docutils, docker-pycreds, docker, Django, configobj, ConfigArgParse, cloudflare, boto3, backports.ssl-match-hostname, Babel, asn1crypto, acme
Running setup.py install for pyxattr … error
ERROR: Command errored out with exit status 1:
command: /usr/local/CyberPanel/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-2fe1pcdj/pyxattr_d2d3a36ceba2401f85e4779f432a1a45/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-2fe1pcdj/pyxattr_d2d3a36ceba2401f85e4779f432a1a45/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r
‘"’“', '”‘"’
‘"’“');f.close();exec(compile(code, file, '”‘“‘exec’”’“‘))’ install --record /tmp/pip-record-dh0313mv/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/CyberPanel/include/site/python3.6/pyxattr
cwd: /tmp/pip-install-2fe1pcdj/pyxattr_d2d3a36ceba2401f85e4779f432a1a45/
Complete output (12 lines):
running install
running build
running build_ext
building ‘xattr’ extension
creating build
creating build/temp.linux-x86_64-3.6
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_XATTR_VERSION=“0.7.1” -D_XATTR_AUTHOR=“Iustin Pop” -D_XATTR_EMAIL="[email protected]” -I/usr/include/python3.6m -c xattr.c -o build/temp.linux-x86_64-3.6/xattr.o -Wall -Werror -Wsign-compare
xattr.c:25:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command ‘gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/CyberPanel/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-2fe1pcdj/pyxattr_d2d3a36ceba2401f85e4779f432a1a45/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-2fe1pcdj/pyxattr_d2d3a36ceba2401f85e4779f432a1a45/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r
‘"’“', '”‘"’
‘"’“');f.close();exec(compile(code, file, '”‘“‘exec’”’"‘))’ install --record /tmp/pip-record-dh0313mv/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/CyberPanel/include/site/python3.6/pyxattr Check the logs for full command output.
pip install --default-timeout=3600 -r /usr/local/requirments.txt has failed for 24 times
Wait for 3 seconds and try again…