Error make sure you have a working qt qmake on your path

I am attempting to get PyQt4 running on a windows 10 device with python 3.6.3. I have sips installed and built already in my python directory. However, when I run the configure.py/configure-ng.py f...

I am attempting to get PyQt4 running on a windows 10 device with python 3.6.3. I have sips installed and built already in my python directory. However, when I run the configure.py/configure-ng.py file in the PyQt4 folder I get the following error: Error: Make sure you have a working Qt qmake on your PATH.

I’m not sure how to fix this problem or what qmake is. I apprectiate any answers on how to fix this!

asked Oct 4, 2017 at 17:08

GreenSaber's user avatar

qmake is the name of Qt’s build tool, which generates Makefiles or other files needed to compile code on any platform that Qt supports. To fix this, you need to find out where the qmake executable lives on your system.

If you know where the executable installed, just add that directory to your path. If you don’t know, you’ll have to find it somehow, by searching your computer.

answered Oct 4, 2017 at 17:19

bnaecker's user avatar

bnaeckerbnaecker

5,9021 gold badge16 silver badges32 bronze badges

4

For the case of Ubuntu:

qmake was installed but for some reason was not working with the default python configure.py command. So I checked for the available installation path using the command

$ whereis qmake
qmake: /usr/bin/qmake /usr/bin/X11/qmake /opt/anaconda2/bin/qmake

Then I supplied the first path with the -q option like so

$ python configure.py -q /usr/bin/qmake

You may also use python3 instead of python if you prefer version 3.x. This worked well for me.

answered Oct 25, 2017 at 8:02

Ébe Isaac's user avatar

Ébe IsaacÉbe Isaac

10.8k17 gold badges60 silver badges94 bronze badges

This topic has been deleted. Only users with topic management privileges can see it.

  • Hi

    I am having trouble with installing PyQt4 on Windows 10. I have tried to solve the problem for many days now, but still haven’t figured it out.
    So I downloaded PyQt4 zip and extracted it to the drive. When I try to run a command «python configure-ng.py» in PS it gives me an error «Error: Make sure you have a working Qt qmake on your PATH.» although I have QT installed. I have tried to copy «qmake.exe» to the folder where I am running the «python configure-ng.py», but still the same error.

    I also tried the second option, running «python configure.py», but then I get an error «No module named ‘sipconfig'» I have Googeled that it is caused, cause SIP isn’t installed. So I downloaded SIP zip and tried to install SIP from PS. First I executed a command «python configure.py —platform win32-g++» from the folder where I extracted the SIP files. Then I executed a command «C:MinGWbinmingw32-make.exe» cause just command «make» does not work. But then I got an error

    PS G:ProgrammeerimineuusLibsite-packagesPyQt4_gpl_win-4.12.1sip 4.19.7> C:MinGWbinmake.exe
    make[1]: Entering directory 'G:/Programmeerimine/uus/Lib/site-packages/PyQt4_gpl_win-4.12.1/sip-4.19.7/sipgen'
    gcc -c -O2 -Wall -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c
    gcc: error: CreateProcess: No such file or directory
    Makefile:29: recipe for target 'main.o' failed
    make[1]: *** [main.o] Error 1
    make[1]: Leaving directory 'G:/Programmeerimine/uus/Lib/site-
    packages/PyQt4_gpl_win-4.12.1/sip-4.19.7/sipgen'
    Makefile:3: recipe for target 'all' failed
    make: *** [all] Error 2
    

    Really looking forward hearing your answers. Thank you in advance!

  • @Programmer-hunt No need to copy qmake.exe, just do what PyQt suggests: add the path containing qmake.exe to your PATH environment variable.

  • Thank you for your response. But I do not understand fully. You mean adding «—qmake PATH or -q PATH to the command? If yes, it does not work in Windows «This option is not available on Windows where qmake must be on PATH.»
    So I’d ask what exactly means «be on PATH»?
    My OS is installed on partition C, QT is insalled on partition D (D:RakendusedQT_uus) and I try to run configure-ng.py from partition D (D:ProgrammeeriminePyQt4_gpl_win-4.12.1)

  • Hi and welcome to devnet,

    They mean that you have to modify the PATH environment variable and add the folder where qmake is to it. However do it only for the command line you are currently using.

    Something like: set PATH "%PATH%;D:RakendusedQT_uus5.10.0mingw_32bin"

  • @Programmer-hunt PATH is an environment variable containing paths to directories where the system looks for executables.
    If you execute qmake.exe in a terminal then the system looks in these directories until it find one which contains qmake.exe and then it starts qmake.exe from this directory.
    You need to add the path to the directory which contains qmake.exe to this variable.
    This way you can see what it currently contains:

    echo %PATH%
    

    To add a directory:

    PATH=%PATH%;c:Qt5.9bin
    python configure-ng.py
    

    Please replace the path with the one which matches your Qt setup.

  • Really thank you guys for making it clearer for me. I do not know how I did not understand it the first time ☺. So I got pass this error and now I have another error.
    In QT5.10.0 I have many versions. 0_1516970806462_193cde99-f4c9-4975-8f03-fcba106f3df8-image.png

    G:ProgrammeerimineuusLibsite-packagesPyQt4_gpl_win-4.12.1>PATH=%PATH%;G:RakendusedQT_uus5.10.0mingw53_32bin
    
    G:ProgrammeerimineuusLibsite-packagesPyQt4_gpl_win-4.12.1>python configure-ng.py --verbose
    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    G:RakendusedQT_uus5.10.0winrt_x86_msvc2017binqmake.exe -spec win32-msvc2015 -o qtdetail.mk qtdetail.pro
    Could not find qmake configuration file win32-msvc2015.
    Error processing project file: qtdetail.pro
    Error: Failed to determine the detail of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    
  • Why not build PyQt5 ? I’m not sure PyQt4 supports such a recent version of Qt.

  • @Programmer-hunt said in PyQt4 installation process (Error):

    G:RakendusedQT_uus5.10.0winrt_x86_msvc2017binqmake.exe

    It calls wrong qmake.exe. Are you sure you didn’t add G:RakendusedQT_uus5.10.0winrt_x86_msvc2017bin to PATH?
    You should use msvc2015 Qt as it looks like this is one configure-ng.py expects.

  • Really appreciate your help. Got it working with a earlier version. Again, real thanks to you guys! :)

  • @Programmer-hunt I’m having the exact same issues. What earlier version qmake.exe did you use that got it to work?



  • Я пытаюсь запустить PyQt4 на устройстве windows 10 с python 3.6.3. Я уже установил и построил sips в моем каталоге python. Однако при запуске файла configure.py/configure-ng.py в папке PyQt4 я получаю следующую ошибку: Error: Make sure you have a working Qt qmake on your PATH.

    Я не знаю, как решить эту проблему или что такое qmake. Я знаю любые ответы о том, как это исправить!


    474  


    2  

    2 ответов:

    qmake это название инструмента сборки Qt, который генерирует файлы Makefile или другие файлы, необходимые для компиляции кода на любой платформе, поддерживаемой Qt. Чтобы исправить это, вам нужно выяснить, где находится исполняемый файл qmake в вашей системе.

    Если вы знаете, где установлен исполняемый файл, просто добавьте этот каталог в свой путь. Если вы не знаете, вам придется как-то найти его, поискав в вашем компьютере.

    Для случая Ubuntu:

    qmake был установлен, но по какой-то причине не работал с командой default python configure.py. Поэтому я проверил доступный путь установки с помощью команды

    $ whereis qmake
    qmake: /usr/bin/qmake /usr/bin/X11/qmake /opt/anaconda2/bin/qmake
    

    Затем я предоставил первый путь с параметром -q, таким как

    $ python configure.py -q /usr/bin/qmake
    

    Вы также можете использовать python3 вместо python, Если предпочитаете версию 3.x. это хорошо сработало для меня.

    I’m trying to install PyQt5 for python3 from source files.

    I install SIP correctly.

    Then when I want to prepare the make file for installing PyQt, I get this error:

    #python3 configure.py
    
    Error: /usr/bin/qmake failed to create a makefile. Make sure you have a working
    Qt qmake on your PATH or use the -q argument to explicitly specify a working Qt
    qmake.
    

    Braiam's user avatar

    Braiam

    34.8k25 gold badges107 silver badges165 bronze badges

    asked Aug 6, 2014 at 20:06

    HaTiMuX's user avatar

    5

    Perhaps you do not have qmake installed. On Fedora this is in the Qt -devel package, but on debian / ubuntu it may be in it’s own package; the two most likely candidates are:

    > apt-cache search qmake
    qt3-dev-tools - Qt3 development tools
    qt4-qmake - Qt 4 qmake Makefile generator tool
    

    You should be able to type which qmake and get a reply such as /usr/bin/qmake.

    answered Aug 7, 2014 at 9:23

    goldilocks's user avatar

    goldilocksgoldilocks

    84.8k30 gold badges200 silver badges255 bronze badges

    Posted By: Anonymous

    When I try installing the PyQt5 on Windows using the command

    python configure.py
    

    I get this error:

    Error: Make sure you have a working Qt qmake on your PATH.
    

    I got the pyQt5 from PyQt5 Download.

    How can I install PyQt5?


    Update:

    I installed Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) from the Qt Download page and now I have this error:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    Error: Failed to determine the detail of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    

    And when I execute the command python configure.py --verbose:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    C:QtQt5.0.25.0.2msvc2012_64binqmake.exe -spec win32-msvc2008 -o qtdetail.m
    k qtdetail.pro
    nmake -f qtdetail.mk release
    'nmake' não é reconhecido como um comando interno
    ou externo, um programa operável ou um arquivo em lotes.
    Error: Failed to determine the detail of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    

    I added C:Program Files (x86)Microsoft Visual Studio 11.0VCbin (contains nmake.exe) to PATH and I got this error:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    C:QtQt5.0.25.0.2msvc2012_64binqmake.exe -spec win32-msvc2008 -o qtdetail.mk qtdetail.pro
    nmake -f qtdetail.mk release
    
    
    Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
      "C:Program Files (x86)Microsoft Visual Studio 11.0VCbinnmake.exe" -f qtdetail.mk.Release
    
    
    Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
      cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_CORE_LIB -I"..............QtQt5.0.25.0.2msvc2012_64include" -I"..............QtQt5.0.25.0.2msvc2012_64includeQtCore" -I"release" -I"..............QtQt5.0.25.0.2msvc2012_64mkspecswin32-msvc2008" -Forelease @C:UsersVictorAppDataLocalTempnm68EA.tmp
    
    NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCbincl.EXE"' : return code '0xc0000135'
    
    Stop.
    
    NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCbinnmake.exe"' : return code '0x2'
    
    Stop.
    

    Solution

    The easiest way to install PyQt is to just use the installer (Link in your answer, step #5). If you install python 3.3, the installer will add all of the PyQt5 extras to that python installation automatically. You won’t need to do any compiling (none of: nmake, nmake install, python configure).

    All of the build options are available for if you need a custom install (for instance, using a different version of python, where there isn’t an installer provided by riverbank computing).

    If you do need to compile your own version of PyQt5, the steps (as you have found) are here, but assume you have python and a compiler installed and in your path. The installed and in your path have been where you have been running into trouble it seems. I’d recommend using the installer version, but you need to install python 3.3 first.

    Answered By: Anonymous

    Related Articles

    • Can’t install via pip because of egg_info error
    • How to update Python?
    • Fix top buttons on scroll of list below
    • How can I find the product GUID of an installed MSI setup?
    • Detect if Visual C++ Redistributable for Visual Studio 2012…
    • configure: error: C compiler cannot create executables
    • Unexpected end of JSON input while parsing
    • Convert Python dict into a dataframe
    • Error : Ineffective mark-compacts near heap limit Allocation…
    • Npm run serve Error

    Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

    Сначала попробуйте это в окне cmd Windows:

    pip3 install pyqt5
    

    В случае успеха это будет выглядеть примерно так:

    C:WindowsSystem32>pip3 install pyqt5
    Collecting pyqt5
      Downloading PyQt5-5.9-5.9.1-cp35.cp36.cp37-none-win_amd64.whl (77.2MB)
        100% |################################| 77.2MB 13kB/s
    Collecting sip<4.20,>=4.19.3 (from pyqt5)
      Downloading sip-4.19.3-cp35-none-win_amd64.whl (49kB)
        100% |################################| 51kB 984kB/s
    Installing collected packages: sip, pyqt5
    Successfully installed pyqt5-5.9 sip-4.19.3
    

    Если это не сработало, вы можете попробовать эту ссылку из SourceForge.

    Установщики PyQt5 .exe для Windows

    Как найти установщик, который подходит именно вам?

    Сначала определите, какая у вас версия Python и какой у вас 32-битный или 64-битный Python. Далее откройте один из каталогов. Я использую 3.5-разрядную версию Python 64, поэтому я ищу .exe с этими характеристиками. Когда вы открываете каталог на SourceForge, вы увидите некоторые каталоги с ТОЛЬКО .zip or .tar.gz. Это не то, что вы ищете. Хорошее указание на то, какой каталог вы должны щелкнуть, дает столбец «Загрузки/неделя». я открою PyQt-5.6 каталог в моем случае.

    Здесь мы замечаем некоторые файлы .exe:

    PyQt-5.6
    |_PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x32-2.exe
    |_PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe
    |_PyQt5_gpl-5.6.zip
    |_PyQt5_gpl-5.6.tar.gz
    

    Я знаю, что это Python 3.5 от Py3.5 в имени файла. Я также ищу 64-битную версию, поэтому я скачаю PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe. Окончательный ответ!

    Примечание: если вы попытаетесь установить версию, несовместимую с вашей системой, диалоговое окно появится сразу после запуска .exe. Это признак того, что вы выбрали не тот. Я не пытаюсь звучать как придурок… Я делал это несколько раз!

    Чтобы проверить успешную установку, в интерпретаторе Python попробуйте импортировать:

    from PyQt5 import QtCore, QtGui, QtWidgets
    

    Forum rules
    Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

    linuxdesire

    qt4 not installing; error with Qt

    I have Linux Mint 18 64 installed. I am trying to follow some videos on YouTube using PyQt4 and Qt Designer. I have installed sip already (that took awhile). I am now trying to install PyQt4 from http://www.riverbankcomputing.com. I extracted it and went to the terminal and went into the directory and put this in: python configure.py

    I get this error:

    Code: Select all

    Determining the layout of your Qt installation...
    Error: /usr/bin/qmake failed to create a makefile. Make sure you have a working Qt qmake on your PATH or use the -q argument to explicity specify a working Qt qmake
    

    So I went back to riverbankcomputing and dowloaded qt4 creator. Was not sure if I could download the qt5 since it would not match my PyQt4 installation. I extracted it and it opens without a problem.

    When I went back to trying to configure PyQt4 I still get the same error error as above. I am new at this and googled and was able to get this far but now stuck. Thank you.

    Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

    Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

    Board index FlightGear Support Tools ATC-pie

    ATC-Pie is hard to install.  Topic is solved

    ATC-Pie is hard to install.

    Hi there. Could somebody tell me easily how to install atc pie because I don’t understand the wiki page. It says I need qt5 and Python3, I have Python, but am struggling installing the qt5. The message that appears is:

    ERROR: Make sure you have a working qt Qmake on your PATH.

    This occurs when I try to run configure.py in the qt5 binding process.

    Any help is a great help to me.

    Kind Regards,
    Charlie
    :D :D :D

    chaz.young75
     
    Posts: 4
    Joined: Fri Feb 19, 2016 7:07 pm

    Re: ATC-Pie is hard to install.

    Postby PINTO » Fri Feb 19, 2016 7:30 pm

    What OS are you on? Assuming windows the easiest way to do it is by installing python 3.4 instead of 3.

    6

    5. Then reinstall Qt.

    Last edited by PINTO on Fri Feb 19, 2016 7:43 pm, edited 1 time in total.

    User avatar
    PINTO
     
    Posts: 965
    Joined: Wed Oct 21, 2015 6:28 pm
    Callsign: pinto
    Version: 2016.3.0
    OS: Win10

    Re: ATC-Pie is hard to install.

    Postby chaz.young75 » Fri Feb 19, 2016 7:40 pm

    I am running Windows 7 x64. I already have Python 3.4 and I don’t know whats up.

    Charlie
    :D :D :D

    chaz.young75
     
    Posts: 4
    Joined: Fri Feb 19, 2016 7:07 pm

    Re: ATC-Pie is hard to install.

    Postby PINTO » Fri Feb 19, 2016 7:46 pm

    User avatar
    PINTO
     
    Posts: 965
    Joined: Wed Oct 21, 2015 6:28 pm
    Callsign: pinto
    Version: 2016.3.0
    OS: Win10

    Re: ATC-Pie is hard to install.  

    Postby mickybadia » Fri Feb 19, 2016 9:55 pm

    chaz.young75 wrote in Fri Feb 19, 2016 7:15 pm:but am struggling installing the qt5. The message that appears is:
    ERROR: Make sure you have a working qt Qmake on your PATH.
    This occurs when I try to run configure.py in the qt5 binding process.

    This looks like you are installing the wrong thing!
    Use PINTO’s link above to riverbank. You must not install Qt5 but PyQt5.

    mickybadia
     
    Posts: 468
    Joined: Tue Sep 24, 2013 9:12 am


    Re: ATC-Pie is hard to install.

    Postby mickybadia » Fri Feb 19, 2016 10:55 pm

    chaz.young75 wrote in Fri Feb 19, 2016 10:29 pm:Thanks everybody for your advice, if you want an easier way — install WINPYTHON, which has PyQt5 built into it.

    Aha?
    1. if you have a quick and easy step-by-step install procedure or clear tips for Windows users, I will be happy to include them in the README file, so please share.
    2. (backtracking a little) if you have seen anywhere that it says to «install Qt5», please report and I shall correct it as it is misleading

    mickybadia
     
    Posts: 468
    Joined: Tue Sep 24, 2013 9:12 am



    Return to ATC-pie

    Who is online

    Users browsing this forum: No registered users and 1 guest

    когда я пытаюсь установить PyQt5 в Windows с помощью команды

    python configure.py
    

    Я получаю эту ошибку:

    Error: Make sure you have a working Qt qmake on your PATH.
    

    я получил pyQt5 от PyQt5 Скачать.

    как я могу установить PyQt5?


    обновление:

    Я установил Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) С Страница загрузки Qt и теперь у меня есть эта ошибка:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    Error: Failed to determine the detail of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    

    и когда я выполнить команда python configure.py --verbose:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    C:QtQt5.0.2.0.2msvc2012_64binqmake.exe -spec win32-msvc2008 -o qtdetail.m
    k qtdetail.pro
    nmake -f qtdetail.mk release
    'nmake' não é reconhecido como um comando interno
    ou externo, um programa operável ou um arquivo em lotes.
    Error: Failed to determine the detail of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    

    добавил C:Program Files (x86)Microsoft Visual Studio 11.0VCbin (содержит nmake.exe) к пути и я получил эту ошибку:

    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    C:QtQt5.0.2.0.2msvc2012_64binqmake.exe -spec win32-msvc2008 -o qtdetail.mk qtdetail.pro
    nmake -f qtdetail.mk release
    
    
    Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
      "C:Program Files (x86)Microsoft Visual Studio 11.0VCbinnmake.exe" -f qtdetail.mk.Release
    
    
    Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
      cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_CORE_LIB -I"..............QtQt5.0.2.0.2msvc2012_64include" -I"..............QtQt5.0.2.0.2msvc2012_64includeQtCore" -I"release" -I"..............QtQt5.0.2.0.2msvc2012_64mkspecswin32-msvc2008" -Forelease @C:UsersVictorAppDataLocalTempnm68EA.tmp
    
    NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCbincl.EXE"' : return code '0xc0000135'
    
    Stop.
    
    NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCbinnmake.exe"' : return code '0x2'
    
    Stop.
    

    10 ответов


    самый простой способ установить PyQt просто использовать установщик (ссылка в вашем ответе, Шаг № 5). Если вы установите python 3.3, программа установки автоматически добавит все дополнения PyQt5 к этой установке python. Вам не нужно будет делать компиляцию (ни один из: nmake, nmake install, python configure).

    все параметры сборки доступны, если вам нужна пользовательская установка (например, с использованием другой версии python, где нет установщика, предоставленного riverbank computing).

    Если вам нужно скомпилировать свою собственную версию PyQt5, шаги (как вы нашли) являются здесь, но предположим, что у вас установлен python и компилятор и на вашем пути. Установленные и на вашем пути были там, где вы столкнулись с проблемами, кажется. Я бы рекомендовал использовать версию установщика, но вам нужно установить python 3.3 первый.

    11

    автор: Brett Stottlemyer


    в основном, я использую следующую команду под cmd

    pip install pyqt5
    

    и все работает без проблем!


    я нашел частичное решение…

    шаги по установке pyQt5 (с VS 2012) на Windows:

    1) Установите двоичный файл Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) С здесь.

    2) Get sip-4.14.7 (моментальный снимок разработки) из здесь.

    3) извлеките файл и откройте Developer Command Prompt for VS2012.

    4) выполните следующие команды (в папке sip):

    python configure.py
    nmake
    nmake install
    

    5) получаем pyQt5 С здесь.

    6) экстракт файл и откройте VS2012 x64 Native Tools Command Prompt.

    7) выполните следующие команды:

    python configure.py
    

    обновление: при выполнении этих команд ниже не работает:

    nmake
    nmake install
    

    решение: я попробую использовать pyQt4 с Qt5… потому что pyQt5 находится в разработке и еще не имеет поддержки/документации.


    сначала попробуйте это в окне cmd Windows:

    pip3 install pyqt5
    

    если это будет успешным, это будет выглядеть примерно так:

    C:WindowsSystem32>pip3 install pyqt5
    Collecting pyqt5
      Downloading PyQt5-5.9-5.9.1-cp35.cp36.cp37-none-win_amd64.whl (77.2MB)
        100% |################################| 77.2MB 13kB/s
    Collecting sip<4.20,>=4.19.3 (from pyqt5)
      Downloading sip-4.19.3-cp35-none-win_amd64.whl (49kB)
        100% |################################| 51kB 984kB/s
    Installing collected packages: sip, pyqt5
    Successfully installed pyqt5-5.9 sip-4.19.3
    

    если это не сработало, вы можете попробовать эту ссылку из SourceForge.

    PyQt5 .exe установщики для Windows

    как найти установщик, который подходит именно вам?

    во-первых, определите, какая версия Python у вас есть и есть ли у вас 32-разрядный или 64-разрядный Python.
    Следующий, откройте один из каталогов. Я на Python 3.5 64-бит, поэтому я ищу .exe с этими спецификациями. Когда вы откроете каталог на SourceForge, вы увидите некоторые каталоги только с .zip или .смола.gz. Это не то, что ты ищешь. Хорошее указание на то, какой каталог вы должны щелкнуть, дается столбцом «загрузки / неделя».
    Я открою PyQt-5.6


    одним из самых (вероятно, самых) простых способов установки пакетов сайтов, таких как PyQt5, является установка одной из версий Anaconda. Вы можете просто установить многие из site-packages, установив его. Список доступных сайтов-пакетов с версиями Anaconda можно проверить здесь.

    1. Dowload Anaconda3 или Anaconda2
    2. установить его.
    3. добавьте путь PyQt5 внутри установки Anaconda в вашу системную среду Переменная.

    например:

    PATH: ....; C:Anaconda3Libsite-packagesPyQt5; ...
    
    1. он готов к использованию.

    Я новичок как в Python, так и в PyQt5. Я попытался использовать pip, но у меня были проблемы с ним, используя машину Windows. Если у вас есть версия Python 3.4 или выше, pip установлен и готов к использованию следующим образом:

    python -m pip install pyqt5 
    

    Это, конечно, предполагая, что путь для исполняемого файла Python находится в переменной среды PATH. В противном случае включите полный путь к исполняемому файлу Python (вы можете ввести where python в окно команды, чтобы найти его), как:

    C:usersuserNameAppDataLocalProgramsPythonPython34python.exe -m pip install pyqt5
    

    еще одна команда под cmd — Это:

    easy_install pyqt5


    Если вы используете canopy, используйте менеджер пакетов для установки qt (and или pyqt)


    вы можете легко установить его с помощью Anaconda. Сначала установите Анаконда или Miniconda о системе (скачать с здесь), а затем установите pyqt следующим образом:

    conda install pyqt
    

    он работает для обеих версий python (2 и 3).


    чтобы установить версию PyQt5 GPL, запустите (см. Проект PyQt5):

    pip3 install pyqt5
    

    установка на питон колеса для вашей платформы и версии Python (если оба поддерживаются).

    (колесо будет автоматически загружено из Индекс Пакета Python.)

    В PyQt5 колеса включает в себя необходимые части LGPL версии Qt. нет необходимости устанавливать Qt самостоятельно.

    (при требуемом sip упаковано как отдельное колесо и будет загружен и установлен автоматически.)


    Примечание:

    Если вы получаете сообщение об ошибке, говорящее что-то как

    No downloads could be found that satisfy the requirement 
    

    тогда вы, вероятно, используете неподдерживаемая версия Python.


    Понравилась статья? Поделить с друзьями:
  • Error main file version
  • Error main file cannot be included recursively when building a preamble
  • Error main cannot start client command adb
  • Error mail command failed 550 not local sender over smtp
  • Error macro mortal kombat