I am currently trying to build a docker image on my macOS Monterey 12.6
. When I am trying to install the PyQt5 package in my docker image I am getting the following error:
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
Here is the full error: https://i.stack.imgur.com/nH4Mu.png
**Can someone please tell me why this is happening or how can I solve this?
Dockerfile
FROM ubuntu:latest
# Preparing work environment
ADD server.py .
RUN apt-get update
RUN apt-get upgrade
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
# Preparing work environment
RUN pip3 install PyQt5 # The error occurred in this line