我即将开始使用 PyQT 进行开发,但似乎存在两个版本。我应该去哪一个?
另外,我似乎无法能够安装或者使用pip install PyQt4我得到以下错误:
Downloading/unpacking PyQt4
Could not find any downloads that satisfy the requirement PyQt4
Cleaning up...
No distributions at all found for PyQt4
Storing complete log in /home/user/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
日志说:
Exception information:
Traceback (most recent call last):
File "/home/user/projects/pyqt-test-1/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/home/user/projects/pyqt-test-1/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/user/projects/pyqt-test-1/lib/python2.7/site-packages/pip/req.py", line 1085, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/home/user/projects/pyqt-test-1/lib/python2.7/site-packages/pip/index.py", line 265, in find_requirement
raise …Run Code Online (Sandbox Code Playgroud) 我的机器上运行 anaconda。几天前,我不得不更新一些库,因为它们已经过时了。更新后,由于以下错误,我无法再启动 anaconda-navigator 或 spyder:
(base) C:\>qtpy.PythonQtError: No Qt bindings could be found
Run Code Online (Sandbox Code Playgroud)
我尝试了以下方法:
*卸载/重新安装整个包*以下命令:
conda update conda
conda update --all
conda install pyqt5
pip install pyqt5
Run Code Online (Sandbox Code Playgroud)
*重置spyder设置
已安装的软件包和网址:
(base) C:\>SPYDER
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy\__init__.py", line 202, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 186, …Run Code Online (Sandbox Code Playgroud)