I'm trying desperately to install PyQt5 for python2.7 on my Mac running macOS Sierra. I've tried running:
brew install pyqt5
As well as downloading the source code and compiling myself. Can anybody provide me with some quick commands that I can copy/paste into terminal to install PyQt5 for python2.7?
This is a pretty good rundown of the problem, and a solution:
I suppose you don't see using python3 as an option. Even within a virtualenv? Developing new software using python2 may become increasingly frustrating (more and more problems like the one you're encountering).
sudo easy_install pip
sudo pip install virtualenv
brew install python3
virtualenv -p python3 venv
. venv/bin/activate
pip install pyqt5
# PROFIT
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.