admin管理员组

文章数量:1396787

While trying to deploy successfully, i am hitting hurdles one after another. By now, i know that deploying "stable" version is correct, not "main" for production.

Repo : .git

In the dockerfile the first line is

FROM python:3.11-slim

but the control is going thru python 3.12 as the error shows.

Error:

File "/tmp/pip-build-env-wlebbpoz/overlay/lib/python3.12/site-packages/setuptools/init.py", line 10, in import distutils.core ModuleNotFoundError: No module named 'distutils'

I tweaked dockerfile and requirements.txt, as it was initially giving error for lxml version. That is resolved.

There is a discrepancy between the Docker image and the host system's Python version.

How to have host system's python version match with that of the dockerfile ?

本文标签: