PyQt5-5.8.2 doesn't function on Windows 10

后端 未结 3 1571
刺人心
刺人心 2021-01-28 05:14

I need to install qscintilla. I use pip for that:

> pip install qscintilla

PyQt5 automatically upgrades to the latest ve

相关标签:
3条回答
  • 2021-01-28 05:33

    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
    
    0 讨论(0)
  • 2021-01-28 05:48

    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.

    0 讨论(0)
  • 2021-01-28 05:50

    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.

    0 讨论(0)
提交回复
热议问题