[英]Installing PyQt4 for Python 3 mac
I'm having trouble getting PyQt4 to work with Python 3. I was able to get PyQt5 to work but all the tutorials seem to be using PyQt4 for web scraping so it looks like I'm forced to use PyQt4.我无法让 PyQt4 与 Python 3 一起工作。我能够让 PyQt5 工作,但所有教程似乎都使用 PyQt4 进行网页抓取,所以看起来我被迫使用 PyQt4。
I've followed the directions at我已经按照指示在
http://pyqt.sourceforge.net/Docs/PyQt4/installation.html
but whenever I get to the 'make install' part everything is copied over to my Python 2.7 directory where it works for Python 2.7.但是每当我进入“make install”部分时,所有内容都会被复制到我的 Python 2.7 目录中,它适用于 Python 2.7。
I tried setting the destination directory我尝试设置目标目录
python3 configure.py -destdir/Users/ryan/anaconda/lib/python3.4/site-packages/
but it still installed to the python 2 dir.但它仍然安装到 python 2 目录。 I also tried setting the python version我也试过设置python版本
python3 configure.py --target-py-version 3.4
but it returns但它返回
configure.py: error: no such option: --target-py-version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.