百度智能云

All Product Document

          Cloud Compute Service

          Install the SDK Toolkit

          Environmental Preparation

          1. Running Environment

            The Python SDK JAR supports the running in the Python 2.7 and Python 3 environments.

          2. Install a pycrypto Dependency

            Run the commandpip install pycryptoto install the pycrypto dependency before the installation of SDK.

          Download and Install

          Mode 1: Install SDK through pip

          You can install the Baidu AI Cloud Python SDK to your environment through pip. Run the following commands from the command line online:

          pip install bce-python-sdk
           

          To install the Python SDK locally.

          Mode 2: Download the source package to install it locally

          1. Download the Python SDK compression package from the Developer Resource Center.
          2. Move the command line to the path of compression package, and then run the following command. The version is replaced with the version number in the package name:

             pip install bce-python-sdk-version.zip  

            To install the Python SDK locally.

          Method 3: Install it through the setup.py install file

          You can also decompress the compression package, and then run the following command . The version is replaced with the version number in the package name.

          cd bce-python-sdk-version
          
          python setup.py install 

          Uninstall a SDK

          You can run the command pip uninstall bce-python-sdkto uninstall the SDK.

          Previous
          Overview
          Next
          Initialization