..
Python 3.7 Pip Install Reportlab Error
문제
개발 환경
os
macOS Big Sur 11.0.1odoo
enterprise 12python
3.7.6pip
21.1.2
Odoo에 필요한 패키지를 설치하던 중 reportlab 3.3.0
에서 아래와 같은 오류가 발생했다.
ERROR: Command errored out with exit status 1:
command: /Users/macrent/.pyenv/versions/3.7.6/envs/EX_GOOD_OENT12/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-install-fyidar5g/reportlab_ab22d227c764472d8130ec3629244cd9/setup.py'"'"'; __file__='"'"'/private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-install-fyidar5g/reportlab_ab22d227c764472d8130ec3629244cd9/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 /private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-record-3fa3oxld/install-record.txt --single-version-externally-managed --compile --install-headers /Users/macrent/.pyenv/versions/3.7.6/envs/EX_GOOD_OENT12/include/site/python3.7/reportlab
cwd: /private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-install-fyidar5g/reportlab_ab22d227c764472d8130ec3629244cd9/
Complete output (283 lines):
// more message ...
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/macrent/.pyenv/versions/3.7.6/envs/EX_GOOD_OENT12/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-install-fyidar5g/reportlab_ab22d227c764472d8130ec3629244cd9/setup.py'"'"'; __file__='"'"'/private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-install-fyidar5g/reportlab_ab22d227c764472d8130ec3629244cd9/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 /private/var/folders/q_/f88nb2692pqg3m4hdbc95thr0000gn/T/pip-record-3fa3oxld/install-record.txt --single-version-externally-managed --compile --install-headers /Users/macrent/.pyenv/versions/3.7.6/envs/EX_GOOD_OENT12/include/site/python3.7/reportlab Check the logs for full command output.
해결
아래 명령어로 설치하면 패키지 설치가 정상적으로 완료된다.
CFLAGS="-Wno-error=implicit-function-declaration" pip install reportlab==3.3.0