我想使用realvnc python api綁定一個我的python腳本。有什麼方法通過點安裝?使用pip安裝realvnc
我試過pip install realvnc
和pip install vncsdk
都沒有爲我工作。
任何幫助,將不勝感激。
我想使用realvnc python api綁定一個我的python腳本。有什麼方法通過點安裝?使用pip安裝realvnc
我試過pip install realvnc
和pip install vncsdk
都沒有爲我工作。
任何幫助,將不勝感激。
Is there a way to install via pip
不,您必須登錄才能下載。 https://developer.realvnc.com/download/
如何使用它?您需要將vncsdk.py
文件移動到你的Python路徑「也是SDK的本地綁定(SDK的共享庫,或DLL)」
In order for the Python runtime to locate the SDK, you may need to append the location of the bindings to the
sys.path
variable before importing the bindings. Alternatively, you can install the bindings in a global location such as/usr/lib/python2.7/site-packages/
orC:\Python27\lib\site-packages
(depending on your system and Python version).
然後,你應該能夠導入
import vncsdk
https://developer.realvnc.com/docs/latest/api/python/index.html
嗨@ cricket_007,謝謝你的幫助。我使用Python 2.7。如你所建議的,我將vncsdk.py文件複製到C:\ Python27 \ Lib \ site-packages文件夾中。我需要在環境變量上添加另一個變量嗎?當我嘗試導入時,出現以下錯誤; – pydev
>>>進口vncsdk 回溯(最近通話最後一個): 文件 「
再次閱讀鏈接... 「你將不僅需要包含綁定本身,vncsdk.py,還包括SDK的本地綁定(SDK共享庫或DLL)**「 –
谷歌的'pip install realvnc'不顯示任何匹配的結果。你爲什麼認爲這會起作用? –