在python中导入ibm_db时,我正在跟踪跟踪-
Traceback (most recent call last):
File "/working/Script.py", line 5, in <module>
import ibm_db
ImportError: Error loading shared library libcrypt.so.1: No such file or directory (needed by
/usr/local/lib/python3.9/site-packages/clidriver/lib/libdb2.so.1)请在我的码头图片和requirements.txt文件下面找到-
FROM python:3.9-alpine3.16
COPY requirements.txt requirements.txt
RUN apk --update add --virtual build-dependencies python3 py-pip openssl ca-certificates py-openssl wget libffi-dev openssl-dev python3-dev py-pip py3-pandas build-base \
&& apk add python3 make g++ \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& apk del build-dependencies
ENTRYPOINT [ "python", "Script.py" ]Requirements.txt -
cryptography==2.9
botocore==1.12.253
azure-storage-blob==2.1.0
azure-storage-common==2.1.0
snowflake-connector-python==1.9.1
snowflake-sqlalchemy==1.2.4
SQLAlchemy==1.3.19
ibm_db
s3fs发布于 2022-10-19 08:54:46
IBM ( python模块所依赖的)不受阿尔卑斯-Linux的支持-也就是说,它不能在高寒-Linux上工作。
该驱动程序(客户端驱动程序)是封闭源代码的,而Linux的x64是由gcc构建的。
您必须选择支持的基本Linux、Ubuntu、Red、SuSe。
https://stackoverflow.com/questions/74117950
复制相似问题