Install CDP client on Windows

You must install Python and pip before you install the CDP client.

Install Python and pip on Windows

To install Python and pip:

  1. Download and install the latest version of Python for Windows from the Python downloads page.
  2. Add the Python home and scripts directories to the Windows PATH environment variable.
  3. The Python directory can vary for different versions of Python and different versions of Windows. For example, on the Windows 2016 server, the Python 3.6.1 home directory and the scripts directory are in the following locations:
    C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\;
    C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Scripts\;

Install CDP client after Python on Windows

To install the CDP client:

  1. Open a Command Prompt window.
  2. Use the following commands to verify that Python and pip are correctly installed:
    python --version
    pip --version
  3. Use pip to install the CDP client using the following command:
    pip install cdpcli
  4. Use the following command to verify that the CDP client is correctly installed:
    cdp --version

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

    pip install --upgrade cdpcli