Я пытаюсь установить пакет pymssql с pip для lambci / lambda: контейнер докера python3.6
запустить контейнер интерактивный bash с
docker run -u root -v "$PWD":/var/task --entrypoint bash -it lambci/lambda:python3.6
run
pip install pymssql
получите ошибку
bash-4.2# pip install pymssql
Collecting pymssql
Using cached https://files.pythonhosted.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz
Installing collected packages: pymssql
Running setup.py install for pymssql ... error
Complete output from command /var/lang//bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ocpd08u_/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kezgld2n-record/install-record.txt --single-version-externally-managed --compile:
setup.py: platform.system() => 'Linux'
setup.py: platform.architecture() => ('64bit', 'ELF')
setup.py: platform.linux_distribution() => ('', '', '')
setup.py: platform.libc_ver() => ('glibc', '2.2.5')
setup.py: Not using bundled FreeTDS
setup.py: include_dirs = ['/usr/local/include']
setup.py: library_dirs = ['/usr/local/lib']
running install
running build
running build_ext
building '_mssql' extension
creating build
creating build/temp.linux-x86_64-3.6
x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/local/p4clients/pkgbuild-CNI8p/workspace/build/LambdaLangPython36/LambdaLangPython36-x.200017.0/AL2012/DEV.STD.PTHREAD/build/private/tmp/brazil-path/build.libfarm/include -I/local/p4clients/pkgbuild-CNI8p/workspace/build/LambdaLangPython36/LambdaLangPython36-x.200017.0/AL2012/DEV.STD.PTHREAD/build/private/tmp/brazil-path/build.libfarm/include -fPIC -I/usr/local/include -I/var/lang/include/python3.6m -c _mssql.c -o build/temp.linux-x86_64-3.6/_mssql.o -DMSDBLIB
unable to execute 'x86_64-unknown-linux-gnu-gcc': No such file or directory
error: command 'x86_64-unknown-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/var/lang//bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ocpd08u_/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kezgld2n-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ocpd08u_/pymssql/