You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -270,128 +270,27 @@ Normally you can install the client the same way on Windows as on Linux, like so
270
270
pip install -e .[dev]
271
271
272
272
This should be working with the most recent code, however, in the past we sometimes had issues with a development installation.
273
-
Should you experience problems, then this section describes some ways to solve them.
274
273
275
-
Known issue
276
-
-----------
274
+
Should you experience problems, there is also a conda package for the Python client and that should be the easiest solution.
277
275
278
-
The specific problem we experienced on Windows is that the geopandas Python package depends on a few libraries that are a bit trickier to install.
279
-
They need some compiled C/C++ code and unfortunately these libraries do not provide officially supported python wheels for Windows.
276
+
For development, what you need to do is:
280
277
281
-
Root Cause
282
-
~~~~~~~~~~
283
-
284
-
Down the line geopandas depends on GDAL and that is a C++ library that does not provide *official* binaries for Windows, though there are binaries from other sources.
285
-
286
-
Because there isn't a supported binary or a Python wheel, the pip installation process will fall back to compiling the C libraries on the fly.
287
-
But that will only work if your have set up a C++ compiler, and have all the dependencies installed,
288
-
and setting up all the dependencies needed for these binaries can be a bit of work.
289
-
290
-
Below are some easier solutions.
291
-
292
-
Solutions
293
-
---------
294
-
295
-
These are a few solutions we know, from the easiest option at the top to the most complex at the bottom.
296
-
The first two options are described in more detail in the sections below.
297
-
298
-
1. **Recommended option:** install the client in a conda environment.
299
-
300
-
For most people this would be the simplest solution.
301
-
302
-
See: :ref:`windows-dev-install-with-conda`
303
-
304
-
2. Use unofficial python wheels for GDAL and Fiona.
305
-
306
-
This is only suitable for development, not for production.
307
-
308
-
See: :ref:`windows-dev-install-unofficial-wheels`
309
-
310
-
3. If you already use Docker or WSL2, using either of those is also a good option for you.
311
-
312
-
- Then you will be on Linux in a container or the WSL VM.
313
-
- Installation on WSL should be the same as on native Linux.
314
-
- If you are comfortable with creating your own Dockerfiles then Docker is also an option.
315
-
316
-
4. Install a C++ compiler and deal with the compilation issues when you install it via pip.
317
-
318
-
Can be complex, so your mileage may vary.
319
-
320
-
321
-
322
-
.. _windows-dev-install-with-conda:
323
-
324
-
Option 1) Install the client in a conda environment
The simplest way to install your openeo development setup is to use the conda package manager, either via Anaconda, or via Miniforge.
328
-
329
-
Anaconda is a commercial product and you can buy support for it.
330
-
Miniforge is a fully open source alternative that has a drop-in replacement for the conda command.
331
-
Miniforge uses the `Conda-forge <https://conda-forge.org/>`_ channel (which is a package repository) by default.
332
-
333
-
* `Anaconda <https://anaconda.org/>`_
334
-
* `Miniforge on GitHub <https://github.com/conda-forge/miniforge>`_
335
-
* `Conda-forge <https://conda-forge.org/>`_
336
-
337
-
The instructions below should work in both Anaconda and Miniforge.
338
-
Though with Miniforge you can simplify the commands a little bit because the conda-forge channel is the default, so you can leave out the option ``-c conda-forge``.
339
-
340
-
Create a conda environment with the geopandas package already installed.
341
-
Installing geopandas from a conda package is the step that avoids the hard part.
278
+
1. Create and activate a new conda environment for developing the openeo-python-client.
279
+
2. In that conda environment, install only the dependencies of openeo via conda, but not the openeo package itself.
280
+
3. Do a pip install of the code in *editable mode* with `pip -e`.
0 commit comments