[ 작업 환경 ]
Python 3.6.8
Centos 7.8
[ 문제 상황 ]
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bi317gqa/socketio_45d4d0a5e6104e'"'"'; __file__='"'"'/tmp/pip-install-bi317gqa/socketio_45d4d0a5e6104ebebb936e8ea42e6ec2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"'ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-
cwd: /tmp/pip-install-bi317gqa/socketio_45d4d0a5e6104ebebb936e8ea42e6ec2/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "/usr/local/lib/python3.6/site-packages/setuptools/extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 16, in <module>
import pkg_resources
File "/usr/local/lib/python3.6/site-packages/pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[ 해결 방법 ]
설치된 setuptools에 문제가 발견되어 발생한 현상입니다. 아래 커맨드로 해결할 수 있습니다.
python3 -m pip install --upgrade setuptools