Install CDP client on macOS

The version of Python and pip installed with macOS is older than the one required for the CDP client. You must install the latest version of Python before you install the CDP client.

Install Python on macOS

Install Python and verify if it is working.

  1. Download and install the latest version of Python for Mac OS X from the Python downloads page.
  2. Use the following commands to install pip:
    $ curl -O https://bootstrap.pypa.io/get-pip.py
    $ python3 get-pip.py --user
  3. Use the following commands to verify that Python and pip are correctly installed:
    python3 --version
    pip3 --version

Install CDP client after Python on macOS

Install the CDP CLI client and verify if it is working.

  1. Use the following command to install the CDP client:
    $ pip3 install cdpcli --user
  2. After you install the CDP client, add the Python directory that contains the client executable files to the PATH environment variable.
  3. The directory can vary based on where Python is installed. For example, for Python 3.6.x the executable files are in the following directory:
    ~/Library/Python/3.6/bin
  4. Use the following command to verify that the CDP client is correctly installed:
    cdp --version

    To upgrade the CDP client to the latest version, run the following command:

    $ pip3 install cdpcli --upgrade --user