PyQt5-5.8.2 doesn't function on Windows 10

旧巷老猫 提交于 2019-12-02 10:02:51
Andrey Bat

The root issue for me was different versions of PyQt wheel (5.9) and pyqt windows distro (5.6 - the last precompiled version available).

I found matching 5.6 wheel, but it only supported Python 3.5. So, I downgraded Python to 3.5 and installed PyQt5-5.6-cp35-none-win_amd64.whl

pip install pyqt5==5.6 

works equally well.

I found a workaround: don't use Anaconda. I deleted Anaconda from my PC and did a fresh install like this:  
 

1. Install Python 64-bit

Download the 64-bit installer for Windows from this URL: https://www.python.org/downloads/release/python-361/

Make sure to include pip when asked for the installation options!  
 

2. Install PyQt5

Install PyQt5 by typing the following in your Windows command terminal:

> pip install PyQt5 --no-cache-dir
...
Successfully installed PyQt5-5.8.2 sip-4.19.2

The --no-cache-dir option makes sure that pip will not use an old version stored somewhere on your computer, but download the latest one instead.  
 

3. Install QScintilla

Install QScintilla like this:

> pip install qscintilla --no-cache-dir
Successfully installed qscintilla-2.10
Mujeeb Ishaque

It does work on windows 10. Your application failed to access specified DLL. A restart is required to get it working. I went through all the answers in the SO forums and it turns out a computer restart can set everything straight. so restart your pc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!