How to download ERA5 dataset?

I‘m trying to download ERA5 dataset using CDS API. But the downloading speed is very slow. I can not download any files in a long time. And also, I don’t know how to set the download path. How to solve thess problems?THANKS!

If you need to download ERA5, you need to use the Climate Data Store (CDS) API, please have a look at the following page for details:

How to download ERA5 - Copernicus Knowledge Base

(from the Forum post: Hello everyone I would like to download era5 data with a python script for this I have created an ecmwf account but if I run the test.py script it gives me the following error I am under ubuntu thank you in advance for your help - #2 by Michela)