Set up PyCharm on Windows and run your first Alibaba Cloud SDK or API call.
Prerequisites
Before you begin, make sure that you have:
A Windows computer with Python installed
An Alibaba Cloud account
(For SDK usage) An AccessKey pair for a Resource Access Management (RAM) user. See Create an AccessKey pair for a RAM user
Install PyCharm
Go to the PyCharm download page and click Download.

Find PyCharm Community Edition and click Download.

Double-click the downloaded installation file (pycharm-community-2024.1.1.exe) and follow the wizard to complete the installation.
ImportantIn the Installation Options step, select Add the bin folder to PATH.
Create a project
Open PyCharm and click New Project.

In the New Project dialog box, configure the following settings:
Name: Enter a project name. Example:
pythonProject.Location: Specify where to save the project files.
NoteCreate Git repository creates a Git repository for version control. This option is not selected in this example.
Create a welcome script creates a main.py file. This option is not selected in this example.
For Interpreter type, select one of the following options:
Project venv (used in this example): Creates a virtual environment that isolates project dependencies from the system Python interpreter. This option suits most Python projects. Python version defaults to the installed Python version. If multiple versions are installed, select the one to use.

Base conda: Uses the conda cross-platform environment manager. This option suits multi-language development in complex environments.
Custom environment: Manually create and configure a Python environment.
NoteInherit packages from base interpreter makes third-party libraries from the global interpreter available in this environment.
Make available to all projects shares the libraries installed in this environment with all projects.

Environment: Generate new creates a new environment. Select existing uses an existing one.
Type: The environment type. Virtualenv is selected by default.
Base python: The Python interpreter version.
Location: Where to save the Python environment.
Create and run a Python file
Right-click the project name and choose New > Python File. Enter a file name, select Python file, and press Enter. This example creates a file named
hello_aliyun.py.

In the editor, enter
print("hello aliyun!")and click the Run icon in the upper-right corner. The outputhello aliyun!appears in the Run window at the bottom of the console.
Use the terminal for Python and pip commands
Click the Terminal icon at the bottom of the PyCharm console, or press Alt+F12, to open the built-in command-line interface (CLI). The terminal supports most commands, including python to run scripts and pip install to install third-party libraries.

Next steps
After setting up your Python development environment, try the following scenarios to start building with Alibaba Cloud services.





