proplume
proplume
采纳率100%
2019-01-02 18:01 阅读 6.3k

pycharm中配置qt designer,PyUIC,运行hello.ui时出现问题。

内容描述:

anaconda3-4.2(python3.5)

python环境

C:\Users\boos\Anaconda3\python.exe

qtdesigner路径

C:\Users\boos\Anaconda3\Lib\site-packages\pyqt5_tools\designer.exe

问题描述:pycharm中配置qt designer,PyUIC,运行hello.ui时出现问题

C:\Users\boos\Anaconda3\python.exe -m PyQt5.uic.pyuic one.ui -o one.py
Traceback (most recent call last):
  File "C:\Users\boos\Anaconda3\lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\boos\Anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\boos\Anaconda3\lib\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
    from PyQt5 import QtCore
ImportError: DLL load failed: 找不到指定的模块。

Process finished with exit code 1
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    proplume proplume 2019-03-11 21:25

    原因:python3.dll is missing

    具体解决参考博客 python3.6:DLL load failed:找不到指定的模块(from PyQt5 import QtCore)

    点赞 评论 复制链接分享
  • weixin_39416561 lyhsdy 2019-01-03 15:02

    这是因为你pycharm内没有PyQt5模块,你在pycharm内用terminal安装pip install pyqt5

    点赞 1 评论 复制链接分享

相关推荐