Lorsque vous installez Choregraphe, le SDK sera installé. Passez le chemin du SDK via python avant le lancement.
naoqi-console
#!/bin/bash
NAOQI_PATH=[Choregarphe.chemin de l'application]/Contents/Resources/lib
#Passer le chemin du SDK via python
export PYTHONPATH=${PYTHONPATH}:${NAOQI_PATH}
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${NAOQI_PATH}
/usr/bin/python
sh naoqi-console
$ sh naoqi-console
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import naoqi
c'est tout
Recommended Posts