pycharm环境,Anaconda+Qt6+eric7安装时,顽固报错解决方法,ImportError: DLL load failed while importing Qsci: 找不到指定的程序

pycharm提示符环境下安装eric7报错:

python D:\setup\python\eric7\install.py 

报错如下:

Traceback (most recent call last):
  File "D:\setup\python\eric7\install.py", line 2427, in <module>
    main(sys.argv)
  File "D:\setup\python\eric7\install.py", line 2308, in main
    doDependancyChecks()
  File "D:\setup\python\eric7\install.py", line 1902, in doDependancyChecks
    from PyQt6.Qsci import (  # noqa: I101, I102
ImportError: DLL load failed while importing Qsci: 找不到指定的程序。

 

顽固报错:

1. 重装Qsci

pip uninstall QScintilla

pip install QScintilla

然后再安装eric7,问题依旧,报错没有任何变化。

问题原因:Qt6与eric7版本不匹配

因为先安装了镜像Qt6(非最新版版本),然后官网下载了最新的 eric7.24.8

安装eric时,所要求的Qt6与已经安装的版本不兼容。

问题解决:因为安装eric7时,会自动下载安装兼容匹配的Qt6,所以卸载Qt6,让eric自动寻找匹配的版本。

操作:

先卸载Qt6

pip uninstall Qt6

然后安装eric7,让它慢慢下载兼容的PyQt6。(温馨提示,python路径上最好不能有中文,不然也有可能会报错)

python D:\setup\python\eric7\install.py 

(pythonProject) PS D:\PycharmProjects\vfIdCard\pythonProject> python D:\setup\python\eric7\install.py
Checking dependencies
PyQt & Qt
---------
Found PyQt6
Found pyuic6
Found PyQt6-WebEngine
Found PyQt6-Charts
Found PyQt6-QScintilla
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtSvgWidgets
Found QtWidgets

Required Packages
-----------------
Found EditorConfig
Found Pygments
Found asttokens
Found black
Found coverage
Found cyclonedx-bom
Found cyclonedx-python-lib
Found isort
Found jedi
Found packaging
Found parso
Found pipdeptree
Found psutil
Found semver
Found tomlkit
Found trove-classifiers
Found watchdog

Optional Packages
-----------------
Found Markdown
Found chardet
Found command-runner
Found docutils
Found esprima
Found fido2
Found pyenchant
Found pywin32
Found pyyaml
Found wheel

Version Information
-------------------
Python: 3.11.9
Qt6: 6.7.2
sip: 6.8.6
PyQt6: 6.7.1
PyQt6-QScintilla: 2.14.1
PyQt6-Charts: 6.7.0
PyQt6-WebEngine: 6.7.0

All dependencies ok.

Cleaning up old installation ... Done
Creating configuration file ... Done
Creating an install info file ... Done
Compiling source files ... Done
Installing eric ... Done

Installation complete.
 

  • 14
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值