Baidu AI Cloud
中国站

百度智能云

Time-Spatial Database

Install SDK

Environmental Preparation

1.Running environment

The Python SDK supports running in Python 2.7 and above version environments.

2.Install pycrypto dependency

Before installing the SDK, you need to run the command pip install pycrypto to install the pycrypto dependency.

If the installation fails, please execute pip install pycryptodome.

Download and Install

Method 1: Install via Pip

You can install Baidu AI Cloud Python SDK into your environment through Pip installation. In the networked state, run the following command on the command line:

pip install bce-python-sdk

You can install the Python SDK in the computer.

Method 2: Download the source package to local disk and install it

  1. Download the Python SDK compressed kit from the Developer Resource Center.
  2. Move the command line to the path where the compressed kit is located and run the following command (version is replaced by the version number in the package name):

     pip install bce-python-sdk-version.zip  

    You can install the Python SDK in the computer.

You can also decompress the compressed kit and run the following command (version is replaced by the version number in the package name)

cd bce-python-sdk-version

python setup.py install 
Previous
Overview
Next
Demo Project Download