【问题标题】:How do I install PyQt5 on Fedora 23 (Python 2)?如何在 Fedora 23 (Python 2) 上安装 PyQt5?
【发布时间】:2016-09-11 12:03:56
【问题描述】:

我按照https://github.com/pyqt/python-qt5/wiki/Compiling-PyQt5-on-Ubuntu-12.04 的说明操作并收到此错误:

$ python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib --verbose
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
/home/david/Qt5.3.1/5.3/gcc_64/bin/qmake -o qtdetail.mk qtdetail.pro
make -f qtdetail.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../Qt5.3.1/5.3/gcc_64/mkspecs/linux-g++ -I. -I../../Qt5.3.1/5.3/gcc_64/include -I../../Qt5.3.1/5.3/gcc_64/include/QtCore -I. -o qtdetail.o qtdetail.cpp
make: g++: Command not found
qtdetail.mk:524: recipe for target 'qtdetail.o' failed
make: *** [qtdetail.o] Error 127
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

有人可以帮我吗?

谢谢。

编辑:我通过使用 dnf 安装 gcc-c++ 解决了这个问题,但现在运行 make 时出现此错误:https://gist.github.com/TheInitializer/4edca67ee64bf7a86a850fe839985297

有人知道怎么回事吗?

【问题讨论】:

  • 您是否安装了g++make: g++: Command not found 似乎很可疑。验证这是否有效:sudo apt-get install build-essential 您应该能够从 shell 运行命令 g++
  • @busfault Fedora 没有apt。你需要dnf install gcc 左右...
  • @Jakuje 已经尝试过了
  • @busfault 好的,我发现了这个:stackoverflow.com/questions/12952913/… 会尝试看看情况如何
  • 安装了它,现在它似乎可以工作了:D

标签: python python-2.7 fedora pyqt5 fedora-23


【解决方案1】:

嗯,我有点傻。

PyQt5 有一个 dnf 包。

我刚刚运行 sudo dnf install PyQt5 并安装了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-24
    • 1970-01-01
    • 2016-02-17
    • 2016-04-07
    • 1970-01-01
    • 2021-05-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多