I installed python version 3.5 (I checked the add path, the default path) and pyqt4. The python itself is here:

C: \ Users \ admin \ AppData \ Local \ Programs \ Python \ Python35-32

PyQt is here:

C: \ Python34 \ Lib \ site-packages \ PyQt4

In the path path there are

When formatting a simple form from qt designer to pyqt format, I get the following error:

C: \ Python34 \ Lib \ site-packages \ PyQt4> pyuic4.bat form.ui -o project.py "" C: \ Python34 \ python "" is not an internal or external command, executable program or batch file.

Tell me what am I doing wrong?

    2 answers 2

    Installing the library for one version of Python, in general, does not make it available for another version of Python.

    If you want to use the library on Python 3.5, then put it on Python 3.5, not 3.4.

    • Share how you managed to install PyQt4 on python 3.5 without tambourines. Most recently, I was very necessary, I could not. - Nikmoon
    • @Nikmoon: This is a separate question. - jfs
    • The official version of the PyQt4 installer is only for python 2.7 and python 3.4 . Therefore, the questioner can not do what you advise him. - Nikmoon
    • @Nikmoon: this has nothing to do with the question that if you have two pythons, then in general you should put the library under each Python. As a separate question: if you cannot do it yourself, then you can ask how to put PyQt4 in Python 3.5 (on my system, I would have something like: sudo apt-get install python3-pyqt4 tried to start, since this is a library with a large C dependency - if it doesn't work, then it will be further understood - but this is a separate issue from installing the library for one version and trying to use it with another version of Python). - jfs
    • The author of the question just does not have two versions of python installed. He set 3.5, and PyQt4 for 3.4. And it tries to start the interpreter 3.4, which is not in the system at all. That's the problem. And you give a general answer to a common question. Also minusanul without understanding. And in this particular case, this general answer is incorrect, see the comments above. - Nikmoon

    As you might guess, the PyQt4 that you installed is designed to work with python 3.4 . Therefore, you have 2 options:

    1) If you need exactly python 3.5 , then you will have to install PyQt5 , because The official PyQt4 installer for this version of python does not exist.

    2) If you need PyQt4 , then I advise you to first remove the already installed PyQt4 , install python 3.4 or python 2.7 latest revision, then install PyQt4 for the appropriate version of python again.

    • the coincidence of version numbers is an accident. For example, PyQt4 can support Python 3.3 or PyQt5 will probably work with Python 3.6. - jfs
    • A reference to PyQt4 for python 3.5 in the studio. - Nikmoon
    • If someone decided that my answer is based on the coincidence of the digits of the versions of PyQt and python , then he is mistaken. My answer is based on facts, not speculation. From the official site you can download the PyQt4 installer for python 2.7 or python 3.4 , there is no version for python 3.5 . The author’s question indicates the installation path, and it says that the installer for python 3.4 . On python 3.5 there is no official installer for PyQt4 , nor is it installed via pip. - Nikmoon