百度智能云

All Product Document

          Multimedia Cloud Processing

          Install Media-SDK-for-Python

          Environmental Preparation

          1.Running environment

          The Python SDK toolkit supports running in Python 2.7 and above.

          2.Install pycrypto reliance

          Before installing SDK, it is needed to execute command pip install pycrypto first to install pycrypto reliance.
          If the installation fails, please execute pip install pycryptodome

          Download and Install

          Method 1: Install via pip

          You can install the Baidu AI Cloud Python SDK into your environment through pip installation. Execute the following command on the command line in the networked state:

           pip install bce-python-sdk 

          You can install the Python SDK locally. Method 2: Download the source package locally and install it

          1.Download the Python SDK compressed toolkit at Developer Resource Center.

          2.Move the command line to the path of the compressed package and execute the following command (version is replaced with the version number in the package name):

           	 pip install bce-python-sdk-version.zip  
           
           You can install the Python SDK locally. 	 

          You can also unzip the package and execute the following command.(Replace version with the version number in the package name)

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

          For a reference to the configuration file, please see Configuring MediaClient

          SDK's Directory Structure

          baidubce 
                 ├── auth                    //Public permission directory 
                 ├── services                //Service public directory 
                 │   └── media              //Media directory 
                 └── http                    //Http request module
          Previous
          Introduction
          Next
          Getting Started