venvĪt this point I was able to install urh into the virtualenv, using the arm64-compiled pyqt5 from hombrew, without neededing Rosetta (and without needing to further "pollute" my system site-packages), and it runs as expected (since the question was about running). $ /opt/homebrew/bin/python3.9 -m venv -system-site-packages. $ brew install # Note that it's installed in python3.9, not 3.10ĭepends_on # Make a python3.9 virtualenv with access to the system's site-packages My steps were: $ # Install pyqt5 via homebrew Learn how to create Python GUIs for Windows, Mac and Linux with this hands-on PyQt5 tutorial. There are two different sets of bindings: PyQt5 supports Qt v5 and the older PyQt4 supports Qt v4 and earlier. Thankfully, the homebrew installation of pyqt5 is compiled for arm64 and works well. Moreover, the PyQt framework runs on all platforms supported by Qt including Mac OS X, Windows and Linux. Unfortunately, there currently are no compatible wheels ( curl -silent "" | grep -i arm64), and attempting to install on 3.10 fails with AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' I was using it as a dependency of another project that I wanted to install in a venv which requires pyqt5 and was not installable via pipx ( urh). I was hoping to install pyqt5 on my M1 mac without Rosetta.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |