...
Install via pip with:
Code Block |
---|
|
pip install ecmwf-api-client |
If you do not have admin privileges you can always install the client in your user space:
Code Block |
---|
|
|
---|
pip install --user ecmwf-api-client |
Alternatively, if you have Anaconda installed you can install the Web API Python client library doing:
Code Block |
---|
condapip install -c conda-userforge ecmwf-api-client |
Expand |
---|
title | Instructions to install the client library in Windows... |
---|
|
If you have Anaconda installed you can install the Web API Python client library doing: Code Block |
---|
conda install -c conda-forge ecmwf-api-client |
Alternatively, you can first install Python (and pip) on your Windows environment. Expand |
---|
- Download windows installer exe from Python.org download page
- Run the exe.
- Screen will be shown to chose the installation option.
- Uncheck "install for all user" option.
- Go for the custom installation.
- On next screen specify the directory path for which your user have full access on the computer (take a note of this as you will need it to set the environment variables).
- Uncheck "create shortcuts for installed application" option.
- Make sure "Add python to environment variable" option is Unchecked .
- Complete the installation.
|
Then add the installation and Script folder path in PATH using set (temporary) or setx (permanent) in a Command Prompt window. This is to make sure that your computer knows where to find the Python interpreter. To do this you will have to modify a setting called PATH, which is a list of directories where Windows will look for programs. Further details and examples are available here. You may choose also to set your environment variables into a batch file (e.g. set-env.bat which you will need to run from the Command Prompt. Expand |
---|
@echo off set PY_HOME=C:\...\python37 set PATH=%PY_HOME%;%PY_HOME%\Scripts;%PATH% |
You can now install it via pip (see instructions above). |
...