[Tutor] Windows Install Issue

eryksun eryksun at gmail.com
Sun Jan 12 02:13:59 CET 2014


On Sat, Jan 11, 2014 at 10:24 AM, Matthew Ngaha <chigga101 at gmail.com> wrote:
>
> """Unfortunately it is not possible to use both the PyQt4 and PyQt5
> installers at the same time. If you wish to have both PyQt4 and PyQt5
> installed at the same time you will need to build them yourself from
> the source packages."""
>
> after seeing this i thought it was better not to try it and maybe
> currupt my files

The pre-built versions of PyQt4 and PyQt5 don't use the same version
of SIP. If you don't have a build system (e.g. Visual Studio 2010, the
Windows 7 SDK, or MinGW), then using a virtual environment should work
around the problem.

http://docs.python.org/3/library/venv.html

Install PyQt4, and then copy the following files and directories to a
separate environment:

    Python33\qt.conf
    Python33\Lib\site-packages\sip.pyd
    Python33\Lib\site-packages\PyQt4

Copy the qt.conf file to the environment's Scripts, and update the
absolute paths it contains to the new PyQt4 directory. Also edit
qt.conf and pyuic4.bat in the PyQt4 directory. Then uninstall PyQt4
and install PyQt5.

This would be simpler if PyQt used a bdist_wininst installer that
works with easy_install. Apparently PySide does.


More information about the Tutor mailing list