Preparing a Python Development Environment
Configuring the Environment
To use the Python SDK of Image Recognition, you need to configure the Python development environment.
- Download Python of a proper version from Python's official website and install it. Python3.3 or later is recommended. This section uses Python 3.7 as an example.
- Download the latest version of PyCharm from PyCharm's official website.
- Start the PyCharm development tool and choose to configure the Python environment.
- Select the Python installation path. See Figure 1. After selecting the target Python, click Apply at the bottom of the page to complete the configuration.
Obtaining and Installing an SDK
To obtain and install the Python SDK, you are advised to use pip commands or PyCharm. You need to install the huaweicloudsdkcore and huaweicloudsdkimage packages as follows:
Install the SDK using pip commands: # Install the core library. pip install huaweicloudsdkcore # Install the image service library. pip install huaweicloudsdkimage To install the Python SDK using PyCharm, perform the following steps: 1. Start PyCharm and choose File > Settings... 2. Click Python Interpreter and then +. 3. Click +, search for huaweicloudsdkcore and huaweicloudsdkimage, and click Install Package in the lower left corner to install the packages.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot