簡體   English   中英

Python 3.6.1 OpenOPC安裝

[英]Python 3.6.1 OpenOPC install

請原諒我的無知,但似乎無法使用Python 2.7或3.6.1安裝OpenOPC。 我找到了github 代碼,但它似乎未包含安裝程序。 因此,我嘗試從此處安裝2.7版。 我可以按照說明讓OpenOPC服務器講話,但是將所有文件從python 3項目復制到我的python目錄后,我可以導入OpenOPC,但是當我嘗試opc = OpenOPC.client()我遇到了錯誤。

 C:\\>python Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import OpenOPC >>> opc = OpenOPC.client() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'OpenOPC' has no attribute 'client' >>> 

這對我來說可以。 感謝pip,我已經通過該軟件包安裝了OpenOPC:

pip install OpenOPC-Python3x

希望能幫助到你。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM