How to install PyQt5 on a new virtualenv and work on an IDLE

后端 未结 5 1522
悲&欢浪女
悲&欢浪女 2021-02-15 01:37

I installed PyQt5 globally on my win7 system (python 3.3), using the installer provided from the official riverbank website.

Then i created a new –no-site-package

5条回答
  •  野性不改
    2021-02-15 02:21

    Anon's solution of adding a Qt libraryPath worked for me. I am using Anaconda3 on Windows. But I found an alternative.

    Copy the file …\Anaconda3\qt.conf to the Scripts folder in the virtual environment. Now I don't need to change any Python code.

    The conf file seems to have been created by …\Anaconda3\Scripts\.qt-post-link.bat.

提交回复
热议问题