百度智能云

All Product Document

          CDN

          Install BCE-CLI

          Precondition

          The BCE CLI command line tool is developed based on Python 2.7. Install the corresponding Python 2.7 based on your operating system, and it supports Windows and Linux at present.

          Operation steps

          1.Prepare for Python environment.

          • Windows environment

            Download python 2.7.msi from the official website Python, and double click for installation.

          • Linux environment

            Take Ubuntu and Redhat as examples:

                # Ubuntu 
                $ sudo apt-get install python python-dev python-setuptools python-pip 
            
                # Redhat 
                $ sudo yum install python python-dev python-setuptools python-pip 

          Note Please execute python -V to view the version information of python after the python is installed, and ensure the version of python indicated is 2.7 or later. The user of Baidu AI Cloud BCC Centos6.5 system can use BCC Centos6.5 Image Dedicated Version CLI.

          2.Install BCE CLI Tool Download link: BCE CLI.

          • Windows environment

            (1)Extract CLI kit. 
            
            (2)Execute the following command in cmd: 
            
                cd $ BCE_PATH 
                $ python setup.py install 
            
            (3)Copy bce to the directory where you execute the program for easier use. 
            
                $ python $YOUR_DIR/bce 
          • Linux environment

            (1)Extract CLI kit. 
            
                $ unzip bce-cli-0.8.3.zip 
            
            (2)Install the bcecli library under the python directory of the system. 
            
                $ python setup.py install
          Previous
          Overview
          Next
          Configure BCE-CLI