|
|
# From conda packages (recommended if possible)
|
|
|
|
|
|
The easiest and often best way to install the Orekit Python Wrapper module in Python is to use pre-made packages for the python distribution [Anaconda](http://docs.continuum.io/anaconda/install.html).
|
|
|
The easiest and often best way to install the Orekit Python Wrapper module in Python is to use pre-made packages for the conda package manager. [Mambaforge](https://github.com/conda-forge/miniforge). The Anaconda distribution is also compatible with these packages but that distribution may have license restrictions.
|
|
|
|
|
|
Orekit [packages](https://github.com/conda-forge/orekit-feedstock) is being continously built in the conda-forge system and can then be installed from the Anaconda python distribution:
|
|
|
Orekit [packages](https://github.com/conda-forge/orekit-feedstock) is being continuously built in the conda-forge system and can then be installed using conda:
|
|
|
|
|
|
```shell
|
|
|
conda install -c conda-forge orekit
|
|
|
```
|
|
|
|
|
|
This will install all dependencies (openjdk) and install scripts that sets the necessary path variables (JCC_JDK, PATH) at activation.
|
|
|
This will install all dependencies (including openjdk) and install scripts that sets the necessary path variables (JCC_JDK, PATH) at activation.
|
|
|
|
|
|
## Activation of the environment in conda
|
|
|
|
|
|
Note that it is needed to active the conda environment to be used, this activation triggers a [script](https://gitlab.orekit.org/orekit-labs/python-wrapper/tree/master/orekit-conda-recipe/scripts) that sets up the right environment variables (JCC_JDK and in some cases PATH). If accessing the python executable directly, for example through an IDE such as PyCharm, the tool [conda-wrappers](https://youtrack.jetbrains.com/issue/PY-18865#comment=27-1444034) can be used to create executable that runs the activation automatically. The wrapped python executable is then located under Scrips/wrappers/conda/python.bat for windows. Point your IDE to this file as python interpreter:
|
|
|
Note that it is needed to active the conda environment to be used, this activation triggers a [script](https://gitlab.orekit.org/orekit-labs/python-wrapper/tree/master/orekit-conda-recipe/scripts) that sets up the right environment variables (JCC_JDK and in some cases PATH). If accessing the python executable directly, for example through an IDE such as PyCharm, the tool [conda-wrappers](https://youtrack.jetbrains.com/issue/PY-18865#comment=27-1444034) can be used to create executable that runs the activation automatically when starting the python executable. The wrapped python executable is then located under Scrips/wrappers/conda/python.bat for windows. Point your IDE to this file as python interpreter:
|
|
|
|
|
|

|
|
|
|
... | ... | @@ -21,7 +21,7 @@ Note that it is needed to active the conda environment to be used, this activati |
|
|
_Note:_ In recent versions of anaconda on Windows it seems like there are some issues if the conda is not "init'ed" on the machine. To do this, run "conda init" in the command prompt.
|
|
|
|
|
|
## Physical Data
|
|
|
The physical data is not included in the orekit library and needs to be provided. A starting package of data is available from https://gitlab.orekit.org/orekit/orekit-data and can be downloaded from https://www.orekit.org/download.html
|
|
|
The physical data is not included in the orekit library and needs to be provided. A starting package of data is available from https://gitlab.orekit.org/orekit/orekit-data and can be downloaded through the helper function `download_orekit_data_curdir()`.
|
|
|
|
|
|
The python helper function setup_orekit_curdir() loads such file, default "orekit-data.zip" and sets up orekit to use it (you need to remove the "-master" from the filename if the repo download is used).
|
|
|
|
... | ... | |