【问题标题】:OpenOPC for Python 3.4适用于 Python 3.4 的 OpenOPC
【发布时间】:2017-03-15 14:51:25
【问题描述】:

我目前正在为 python 2.7 使用 openOPC,我想知道是否可以将库转换为 3.4,我尝试使用 2to3 但它不能正常工作,所有可用的版本只能在python 2,所以我被卡住了。 我也尝试过寻找另一个具有 OPC-DA 连接的库,但没有成功。 有没有人尝试在 Python 3 中成功使用 OpenOPC?

【问题讨论】:

    标签: python-2.7 python-3.x opc


    【解决方案1】:

    This github 上的项目将 OpenOPC 适配为 Python 3.4 和更高版本。试试看。

    【讨论】:

    • 我之前尝试过,但我刚刚意识到我没有引用文件所在的文件夹,所以我认为它在 Python 3.4 中不起作用。无论如何,谢谢它现在起作用了!
    【解决方案2】:

    Download OpenOPC-Python

    pip install OpenOPC-Python3x
    pip install OpenOPC-Python3x
    pip install OpenOPC-Python3x
    pip install OpenOPC-Python3x
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-28
      • 1970-01-01
      • 2014-02-13
      • 2014-07-23
      • 1970-01-01
      相关资源
      最近更新 更多