Install QScintilla to qtpy

153 Views Asked by At

I am using qtpy to write Qt application and I import modules as `

from qtpy import QtWidget

I would like to install QScintilla but installing it using

pip install QScintilla

installs QScintilla inside site-packages/PyQt5 directory ,but I would like it go to site-packages/qtpy , if possible.

I have also tried

pip install --target site-packages/qtpy QScintilla

but it install PyQt5 first inside site-packages/qtpy directory (as dependency) and inside Qscintilla inside the new PyQt5 directory.

1

There are 1 best solutions below

0
On BEST ANSWER

With this commit, the QScinitilla can be imported from qtpy as

from qtpy import Qsci