Install the SDK Toolkit
Environmental Preparation
-
Running Environment
The Python SDK JAR supports the running in the Python 2.7 and Python 3 environments.
-
Install a pycrypto Dependency
Run the command
pip install pycrypto
to 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
- Download the Python SDK compression package from the Developer Resource Center.
-
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-sdk
to uninstall the SDK.