I am trying to install pyqt5
using mac OS with the M1 chip and Python 3.9.12. I suspect the M1 chip may be the cause.
I get an error metadata-generation-failed
.
minimum working example
# directly in the terminal
pip install --no-cache-dir PyQt5==5.14.1
or by adding the line below to a requirements.txt
# necessary for jupyter-notebook so added to requirements.txt
# then run: pip install -r requirements.txt
pyqt5==5.14.1 # missing in conda-forge
my attempts
I also tried using the solutions below but non worked. Homebrew also claimed that pyqt was installed which was strange.
pip install pyqt5
brew install pyqt5
- adding it to
requirements.txt
then runningpip install -r requirements.txt
related questions: