【python openopc】python3安装OpenOPC教程

Python安装OpenOPC

OPC是一个工业数据读写标准,用户开发OPC客户端,进行连接OPC服务器,访问开放的数据接口,进行读写数据。
下面我们进行python3 连接 opc

windows平台:

以管理员身份运行cmd
【python openopc】python3安装OpenOPC教程
在以管理员身份运行的cmd窗口中输入命令 pip install OpenOPC-Python3x ,回车即可安装OpenOPC模块成功,如下图所示。

【python openopc】python3安装OpenOPC教程

安装成功后就可以使用import OpenOPC命令导入模块,如下图所示。

【python openopc】python3安装OpenOPC教程

linux 平台:
linux 平台直接用 pip install OpenOPC-Python3x
命令即可。
【python openopc】python3安装OpenOPC教程
成功!