qscintulapython绑定问题
尝试按照QSCINTILA说明重新绑定PyQT5的Pythonqscintulapython绑定问题,python,pyqt,pyqt5,qscintilla,Python,Pyqt,Pyqt5,Qscintilla,尝试按照QSCINTILA说明重新绑定PyQT5的Python Python Bindings The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and installed. The configure, build and install the binding
Python Bindings
The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and installed.
The configure, build and install the bindings for PyQt v4, run:
python configure.py
make
make install On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.
If you want to build the bindings for PyQt v5 then pass –pyqt=PyQt5 as an argument to configure.py.
但当我运行下面的命令时,它会抱怨没有安装PyQt5
python configure.py --qmake=/users/marklloyd/Qt/5.8/clang_64/bin/qmake --pyqt=PyQt5
Error: Unable to import PyQt5.QtCore. Make sure PyQt5 is installed
如果运行brew info,我可以看到依赖关系正常
brew info qscintilla2
qscintilla2: stable 2.10 (bottled) Port to Qt of the Scintilla editing component https://www.riverbankcomputing.com/software/qscintilla/intro /usr/local/Cellar/qscintilla2/2.10 (135 files, 6.9MB) * Poured from bottle on 2017-03-21 at 13:54:46 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qscintilla2.rb
==> Dependencies Required: qt5 ✔, sip --with-python3 ✔, pyqt5 ✔
==> Requirements Recommended: python3 ✔ Optional: python ✔
==> Options
--with-plugin Build the Qt Designer plugin
--with-python Build Python bindings
--without-python3 Do not build Python3 bindings
这是OSX 10.12.3供参考,我非常高兴地承认我根本不是这方面的专家
我正在尝试让QSCINTILA工作,这样我就可以从Pycom安装PyMakr并使其工作
Pymakr-master marklloyd$ python install.py
Checking dependencies
Python Version: 2.7.12
Found PyQt5
Found pyuic5
Sorry, please install QScintilla2 and
its PyQt5/PyQt4 wrapper.
Error: cannot import name Qsci
还有谁遇到过类似的问题
回答巴里的评论
pip3安装QSCINTILA返回
Requirement already satisfied:
QScintilla in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requirement already satisfied: PyQt5>=5.7.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from QScintilla)
Requirement already satisfied: sip<4.20,>=4.19 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from PyQt5>=5.7.1->QScintilla)
已满足的要求:
qscintra位于/Library/Frameworks/Python.framework/Versions/3.6/lib/Python中3.6/现场安装包
已满足要求:PyQt5>=5.7.1 in/Library/Frameworks/Python.framework/Versions/3.6/lib/Python3.6/现场包(来自QSCINTILA)
已满足要求:sip=4.19 in/Library/Frameworks/Python.framework/Versions/3.6/lib/Python3.6/站点包(来自PyQt5>=5.7.1->QSCINTILA)
pip3安装pyqt5
Requirement already satisfied: pyqt5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requirement already satisfied: sip<4.20,>=4.19 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pyqt5)
已满足要求:pyqt5 in/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
已满足要求:sip=4.19 in/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages(来自pyqt5)
为什么不使用PIP安装软件包?@BarryScott-将PIP安装结果添加到youHi Mark的原始帖子中,我不确定这是否有帮助。我正在使用Windows 10 pc,最近在安装QSCINTILA时遇到了问题。我从来没有弄明白真正的原因,但我还是按照以下帖子中的描述做到了: