/docs/source/install-macos.rst

https://github.com/anki/vector-python-sdk · ReStructuredText · 80 lines · 49 code · 31 blank · 0 comment · 0 complexity · 36876037651497336b6fd748e563383d MD5 · raw file

  1. .. _install-macos:
  2. ###########################
  3. Installation - macOS / OS X
  4. ###########################
  5. This guide provides instructions on installing the Vector SDK for computers running with a macOS operating system.
  6. ^^^^^^^^^^^^^
  7. Prerequisites
  8. ^^^^^^^^^^^^^
  9. * Vector is powered on.
  10. * You have successfully created an Anki account.
  11. * Vector has been set up with the Vector companion app.
  12. * The Vector companion app is *not* currently connected to Vector.
  13. * Vector is connected to the same network as your computer.
  14. * You can see Vector's eyes on his screen.
  15. ^^^^^^^^^^^^^^^^^^^
  16. Python Installation
  17. ^^^^^^^^^^^^^^^^^^^
  18. 1. Install `Homebrew <https://brew.sh>`_ on your system according to the latest instructions. If you already had brew installed then update it by opening a Terminal window and typing in the following::
  19. brew update
  20. 2. Once Homebrew is installed and updated, type the following into the Terminal window to install the latest version of Python 3::
  21. brew install python3
  22. The Vector SDK supports Python 3.6.1 or later.
  23. ^^^^^^^^^^^^^^^^
  24. SDK Installation
  25. ^^^^^^^^^^^^^^^^
  26. To install the SDK, type the following into the Terminal window::
  27. python3 -m pip install --user anki_vector
  28. """""""""""
  29. SDK Upgrade
  30. """""""""""
  31. To upgrade the SDK from a previous install, enter this command::
  32. python3 -m pip install --user --upgrade anki_vector
  33. ^^^^^^^^^^^^^^^^^^^^^
  34. Vector Authentication
  35. ^^^^^^^^^^^^^^^^^^^^^
  36. To authenticate with the robot, type the following into the Terminal window. Note that during this configure step, your password will not show by design as a security precaution::
  37. python3 -m anki_vector.configure
  38. You will be prompted for your robot's name, ip address and serial number. You will also be asked for your Anki login and password. Make sure to use the same account that was used to set up your Vector.
  39. You will see "SUCCESS!" when this script successfully completes.
  40. .. note:: By running the ``anki_vector.configure`` executable submodule, you will be asked to provide your Anki account credentials, and the script will automatically download an authentication token and certificate to your computer that will grant you access to the robot and his capabilities (such as camera and audio) as well as data stored on the robot (such as faces and photos).
  41. The downloaded access token is equivalent to your account credentials. It will be stored in your user directory (~/.anki_vector) along with a robot identity certificate and other useful data for establishing a connection. Do not share your access token.
  42. .. warning:: These credentials give full access to your robot, including camera stream, audio stream and data. Do not share these credentials.
  43. ^^^^^^^^^^^^^^^
  44. Troubleshooting
  45. ^^^^^^^^^^^^^^^
  46. Please see the :doc:`Troubleshooting </troubleshooting>` page for tips, or visit the `Anki Developer Forums <https://forums.anki.com/>`_ to ask questions, find solutions, or for general discussion.
  47. ----
  48. `Terms and Conditions <https://www.anki.com/en-us/company/terms-and-conditions>`_ and `Privacy Policy <https://www.anki.com/en-us/company/privacy>`_
  49. `Click here to return to the Anki Developer website. <https://developer.anki.com>`_