why I can't install pyqt5 python packages
Whenever I try to install pyqt5 python packages on my m1 macbook air,it cannot install,
not only pyqt5, I was unable to install many packages.
Whenever I try to install pyqt5 python packages on my m1 macbook air,it cannot install,
not only pyqt5, I was unable to install many packages.
creativepremnath wrote:
Whenever I try to install pyqt5 python packages on my m1 macbook air,it cannot install,
not only pyqt5, I was unable to install many packages.
Do you have Python installed? If not, fetch the installer from Python.org, and install and configure it as documented, and try again. If you have that prerequisite installed (as it appears), and are having issues with a specific Python package, then check the support forum for the package.
Based on some web searches (“apple silicon” pyqt5, etc.), there seem to have been issues with that package. Here is one potential work-around:
PyQt5 (currently v5.15.9, Feb 2023) requires Python 3.7 or later. If you are on a version of macOS earlier than 12.3, then by default you have Python 2.7.* and without purposely installing Python 3 from Python.org, or Apple's Command Line Tools for Xcode, you would not have the required Python3 for PyQt5 installation. After macOS 12.3, there is no Python distribution installed and you would have to get Python 3 from either of the two methods in the preceding sentence. I recommend Python.org.
PyQt 6.4.2 has been released. As PyQt 4 has been sunsetted, you can probably expect this to happen to PyQt5 at some future date.
To install PyQt5:
pip install -U pip
pip install -U PyQt5
pip show PyQt5
and the current PyQt5 Reference Guide.
why I can't install pyqt5 python packages