我想在Python中使用webkit,但我无法理解。
互联网上的每个示例都基于PyQt5 webkit
,例如this one,但webkit已从模块中完全弃用。
然后我尝试安装PySide
,但我不能。
$ pip3.4 install PySide
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Installing collected packages: PySide
Running setup.py install for PySide ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/
然后我尝试了这段代码,但ModuleNotFoundError
和webkit
获得了gtk
。我搜索安装了找不到任何东西的模块。
在Python中使用webkit是否有任何解决方案?
操作系统: macOS Sierra 10.12.5
答案 0 :(得分:0)
PySide
已贬值
我建议您去PySide2
然后
pip3 install PyQtWebEngine