Baidu AI Cloud
中国站

百度智能云

MapReduce

Install SDK Kit

Environment Preparation

  1. Operating Environment

    Python SDK kit operates in the environment of Python 2.7 or above.

  2. Install pycrypto dependency

    Before installing SDK, you need to execute the command pip install pycrypto to install pycrypto dependency.If the installation fails, please execute pip install pycryptodome.

Download and Install

Method 1: Installation through pip

You can install Baidu AI Cloud Python SDK to your environment through pip installation. In the connected state, execute the following command in the command line:

pip install bce-python-sdk

Python SDK is locally installed.

Method 2: Download the source code package locally and install it

  1. Download the Python SDK compression kit from Developer Resources Center.
  2. Move the command line to the path of package, and execute the following command (replace the version with the version number described in the package name):

     pip install bce-python-sdk-version.zip  

    Python SDK is locally installed.

You can decompress the package and execute the following command (replace the version with the version number described in the package name)

cd bce-python-sdk-version

python setup.py install 

SDK Directory Structure

 baidubce
  ├── auth                    //public privilege directory
  ├── services                //public directory of services
  │   └── bmr                 //BMR directory
  └── http                    //Http request module
Previous
Getting Started
Next
Instance