Configuring a Sample Project
The huaweicloud-sdk-dis-python-X.X.X.zip package downloaded from SDK Download provides a sample project. You can use a development tool (such as PyCharm) to compile and run the sample project on a local device. You can also develop applications based on the sample project. The code path of the sample project is as follows: [$path]\huaweicloud-sdk-dis-python-X.X.X\dis_sdk_python\examples
Procedure
- Obtain the huaweicloud-sdk-dis-python-X.X.X.zip package (you do not need to decompress it), launch the Command Prompt program in the directory of the current package, and enter pip install huaweicloud-sdk-dis-python-X.X.X.zip.
- Import the PyCharm project.
- Choose . The Open File or Project window is displayed.
- Select dis_sdk_python from the \Lib\site-packages Python installation directory. (If dis_sdk_python cannot be found after the installation, upgrade the pip and reinstall the package.)
- Click OK.
- Configure the sdk_python project.
- In the navigation tree on the left, choose and set the font background color.
- In the navigation tree on the left, choose and add Python.
- Select a proper project interpreter and click OK.
Figure 1 Adding Python
- In the navigation tree on the left, choose and set the PyCharm code.
Set Global Encoding, Project Encoding, and Default encoding for properties files to UTF-8.
Last Article: Preparing the Installation Environment
Next Article: Initializing a DIS SDK Client Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.