2016-10-03 101 views
1

我按照this page對樹莓派3.安裝python SDK當我運行「import naoqi」爲檢查的Python SDK的安裝,我看到這個錯誤:的Python SDK上樹莓派安裝指南3

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "naoqi.py", line 7, in <module> 
    import qi 
    File "qi/__init__.py", line 72, in <module> 
    from _qi import Application as _Application 
ImportError: ./_qi.so: cannot open shared object file: No such file or directory 

我想我也許設定wronge路徑驗證碼:

export PYTHONPATH=${PYTHONPATH}:/path/to/python-sdk 

我的問題是,什麼是/path/to/python-sdk? 我設置了這個路徑:export PYTHONPATH=${PYTHONPATH}:/usr/include/python2.7,並且一旦設置此路徑:export PYTHONPATH=${PYTHONPATH}:/home/nao/Downloads/Python-2.7.12

但我再次看到該錯誤。 我該怎麼辦?

+1

你有沒有運行naoqi設置?您可能需要首先編寫naoqi,然後才能導入它。除非這是一個二進制。 – SKipp

+0

@SKipp,不,我沒有運行naoqi設置。我該怎麼做? – narges

回答

0

/path/to/python-sdk將是您提取的地址的絕對路徑pynaoqi-python-2.7-naoqi-x.x-linux32.tar.gz您必須下載。