Prerequisites

Applicable to Python 2 and Python 3.

Installation

  • Method 1: Install Python by using pip.

    The command is as follows.

    	sudo pip install tablestore
    
  • Method 2: Install Python by using GitHub.

    Make sure you have installed git, and then run the following command.

    git clone https://github.com/aliyun/aliyun-tablestore-python-sdk.git
    sudo python setup.py  install
    
  • Method 3: Install Python by using source code.
    1. Download the Python SDK.
    2. Decompress the SDK, and then run the following command.
      sudo python setup.py install
      

Verify SDK

Enter python on the command line and press ENTER to check the version.

>>> import tablestore
>>> tablestore.__version__
'4.3.7'

Uninstall SDK

Uninstall python SDK by using pip.

sudo pip uninstall tablestore