Software requirements
This section will guide you through the use of Python and NAOqi.
Note: | This section only covers the use of Python outside of Choregraphe. |
---|
Installing and configuring Python
-
Install Python 2.6.
> On Linux, you probably already have this version installed.
Note: This should be the case if you are using Ubuntu in a version more recent than Intrepid.
> On Mac Snow Leopard, Python2.6 is already installed but you need to configure Python to use 32 bits libraries:
$~ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
> On Windows, a Python 2.6 installer is available here.
- On Windows, install setup tools, available here.
- On Windows, put and in you %PATH%.
- On Windows, also put and in your %PATH%.
- On the three platforms, set the PYTHONPATH environment variable to .
- On Mac, as a temporary workaround, you should also set DYLD_LIBRARY_PATH to
-
Check that everything is ok by opening a command line and typing:
$~ python ... >>> import naoqi
- If everything is fine, congratulations! You have successfully set up the Python SDK!