python - 在 Ubuntu 20.04 上安装 PySide/ShiBoken
问题描述
我一直在尝试shiboken
在 Ubuntu 20.04(Focal)上的 venv 中安装 PySide(更具体地说,是 PySide 的依赖项)。但是,CMake 似乎很难找到 Qt。
...
-- Found unsuitable Qt version "5.12.8" from /usr/bin/qmake
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.6")
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found suitable version "2.9.10", minimum required is "2.6.32")
-- Found LibXslt: /usr/lib/x86_64-linux-gnu/libxslt.so (found suitable version "1.1.34", minimum required is "1.1.19")
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTCORE library not found.
CMake Error at ApiExtractor/CMakeLists.txt:82 (qt4_add_resources):
Unknown CMake command "qt4_add_resources".
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-stnnA9/shiboken/shiboken_build/py2.7-qt5.12.8-64bit-release/shiboken/CMakeFiles/CMakeOutput.log".
error: Error configuring shiboken
我安装了Qt5,看来shiboken想要Qt4?有没有办法让它与 Qt5 配合得很好?如果那不可能,我该如何降级到 Qt4?
解决方案
推荐阅读
- amazon-dynamodb - DynamoDB - 如何处理没有唯一时间戳作为排序键?
- git - 使用 git 作为插件管理系统
- python - Xarray - 根据空间位置动态选择时间维度
- augmented-reality - Google Pixel 5 对 ARCore 功能的支持程度
- html - 仅当它是唯一具有给定类选择器的元素时才显示元素
- python - 如何返回仅包含小数点后第二位的 python 列表?
- moodle - 在moodle中限制开始一门课程直到另一门课程结束
- javascript - 使用 Javascript 在 JSP 中添加 Bootstrap 微调器
- python - Curl URL 的等效 Python 代码是什么。是否有任何教程显示如何将 curl 转换为 python?
- ios - 在 swiftui 中是否有一种简单的方法来创建像 Mail 这样的 3 层 master-context-detail 应用程序?