Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Fedora23(Python 2)上安装PyQt5?_Python_Python 2.7_Fedora_Pyqt5_Fedora 23 - Fatal编程技术网

如何在Fedora23(Python 2)上安装PyQt5?

如何在Fedora23(Python 2)上安装PyQt5?,python,python-2.7,fedora,pyqt5,fedora-23,Python,Python 2.7,Fedora,Pyqt5,Fedora 23,我按照上的说明进行操作,得到以下错误: $ 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_6

我按照上的说明进行操作,得到以下错误:

$ 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
时遇到了这个错误:


有人知道发生了什么吗?

嗯,我觉得自己有点傻

PyQt5有一个dnf包


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

嗯,我觉得自己有点傻

PyQt5有一个dnf包


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

您是否安装了
g++
<代码>生成:g++:未找到命令似乎可疑。验证此操作是否有效:
sudo-apt-get-install-build-essential
您应该能够从shell运行命令
g++
。@busfault-Fedora没有
apt
。你需要
dnf安装gcc
左右…@Jakuje试过了already@busfault好的,我发现了这个:将尝试看看它是如何运行的安装它,现在它似乎正在工作:Ddo您已经安装了
g++
<代码>生成:g++:未找到命令似乎可疑。验证此操作是否有效:
sudo-apt-get-install-build-essential
您应该能够从shell运行命令
g++
。@busfault-Fedora没有
apt
。你需要
dnf安装gcc
左右…@Jakuje试过了already@busfault好的,我发现了这个:我会试试看它是怎么运行的