【问题标题】:Unable to find PyForms 'loggingbootstrap' dependency找不到 PyForms 'loggingbootstrap' 依赖项
【发布时间】:2017-07-21 12:13:02
【问题描述】:

我正在尝试使用 Python 3 运行一个基本的 pyforms 程序,但出现以下错误:

    import pyforms
  File "C:\Python36\lib\site-packages\pyforms\__init__.py", line 4, in <module>
    import loggingbootstrap
ModuleNotFoundError: No module named 'loggingbootstrap'

我确定我一定遗漏了一些明显的东西,因为在 Google 上没有这个模块的踪迹。

【问题讨论】:

    标签: python-3.x pyforms


    【解决方案1】:

    我也遇到过。似乎对此模块存在未记录的依赖:https://bitbucket.org/fchampalimaud/logging-bootstrap

    您可以使用pip install git+https://bitbucket.org/fchampalimaud/logging-bootstrap.git 安装它。

    (顺便说一句,Pyforms 目前很难安装,因为它的文档很差,而且依赖关系有些深奥。这只是我遇到的几个问题之一。我正在考虑在项目中使用它,但现在决定了寻找其他东西,因为其他人需要能够顺利安装我的产品。)

    【讨论】:

      【解决方案2】:

      在为 Python 3 安装 PyForms 时,不应直接从 pypi 安装 PyForms 本身和 2 个依赖项。相反,您想使用:

      pip install git+https://github.com/UmSenhorQualquer/pyforms.git --upgrade
      pip install git+https://github.com/UmSenhorQualquer/pysettings.git --upgrade
      pip install git+https://bitbucket.org/fchampalimaud/logging-bootstrap.git
      

      【讨论】:

        【解决方案3】:

        我也得到了这个确切的错误。我刚刚在 init 中注释掉了导入,它似乎还没有破坏任何东西。这可能是一个糟糕的解决方案,但它确实有效。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2021-01-21
          • 2017-04-11
          • 2016-10-01
          • 2019-10-28
          • 2020-04-18
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多