You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use the official Python 3.10 image as the base image
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements.txt file into the container
COPY requirements.txt /app/
# Install project dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the project code into the container
COPY . /app/
But this gives the following error:
#8 65.86 ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)
#8 65.86 ERROR: No matching distribution found for pywin32==306
The text was updated successfully, but these errors were encountered:
It's been some time, but if someone comes across this thread:
I've had the same problem, which is that you're using Debian (linux) version of python (FROM python:3.10-slim), so it does not have the package pywin32, because the package is meant only for windows (it allows the unstructured library to use win32 API if it runs on win32).
Fix it by adding ;sys_platform == 'win32' after the requirement, e.g., pywin32==308;sys_platform == 'win32' in the requirement.txt file which tells the pip to install the package only if the target platform is win32.
I have installed the unstructured-inference by following command.
pip install unstructured-inference
And this package installed this (unstructured-inference==0.7.11)
And I have a docker file to build a docker image:
But this gives the following error:
The text was updated successfully, but these errors were encountered: