我收到ModuleNotFoundError:尽管安装了pyforms-gui,但没有名为'pyforms.gui'的模块

问题描述 投票:0回答:1

我正在尝试运行一个程序。它说首先安装需求的自述文件,所以我做了,它安装了pyforms和python_docx但现在当我执行命令python并且我得到错误ModuleNotFoundError:没有名为'pyforms.gui'的模块

怎么能修好?

我尝试手动安装pyforms-gui并得到消息,我已经安装了这个模块。

# -*- coding: utf-8 -*-
import pyforms
from pyforms.controls import ControlButton
from pyforms.gui.controls.ControlEmptyWidget import ControlEmptyWidget #problematic line
from pyforms.gui.controls.ControlProgress import ControlProgress
from generation import Project
from widgets.stage_13 import Stage13Window
from widgets.stage_5 import Stage5Window
from .initial_data_editor import InitialDataEditor
python pip pyforms
1个回答
0
投票

您的import语句不正确。正确的进口给予here。请注意,pyform.gui现在是pyforms_gui

from pyforms_gui.controls.control_emptywidget import ControlEmptyWidget
from pyforms_gui.controls.control_progress import ControlProgress
© www.soinside.com 2019 - 2024. All rights reserved.