Hello @jiaxiangtian
Welcome to the GMT forum!
Please take a look at the guidelines for creating a good forum post at Forum tips & tricks: create a good post. Especially, do not post screenshots of code and error / warning messages. Just copy and paste both. You can format your script as code by placing three backticks in the line before and after the block with the script:
```
your script formatted as code
```
Can you please post the complete output of python -c "import pygmt; pygmt.show_versions()"
.