티스토리 뷰
@ pip install pyodbc
ERROR: Command errored out with exit status 1:
command: /home/netis/tool/python377/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t189nc0a/pyodbc_57048132ac7944ebaa4e556be503282f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t189nc0a/pyodbc_57048132ac7944ebaa4e556be503282f/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\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2h5zv3ax/install-record.txt --single-version-externally-managed --compile --install-headers /home/netis/tool/python377/include/python3.7m/pyodbc
cwd: /tmp/pip-install-t189nc0a/pyodbc_57048132ac7944ebaa4e556be503282f/
Complete output (10 lines):
running install
running build
running build_ext
building 'pyodbc' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.31 -I/home/netis/tool/python377/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/include
gcc: error trying to exec 'cc1plus': execvp: 그런 파일이나 디렉터리가 없습니다
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/netis/tool/python377/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t189nc0a/pyodbc_57048132ac7944ebaa4e556be503282f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t189nc0a/pyodbc_57048132ac7944ebaa4e556be503282f/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\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2h5zv3ax/install-record.txt --single-version-externally-managed --compile --install-headers /home/netis/tool/python377/include/python3.7m/pyodbc Check the logs for full command output.
히결책: sudo yum install gcc-c++
pip install pyodbc
Collecting pyodbc
Using cached pyodbc-4.0.31.tar.gz (280 kB)
Using legacy 'setup.py install' for pyodbc, since package 'wheel' is not installed.
Installing collected packages: pyodbc
Running setup.py install for pyodbc ... done
Successfully installed pyodbc-4.0.3
