Installation
Dependencies
Required
Python 3.x
Optional
odc (>= 1.4.0)
Note
For codc to work, the odc library must be compiled and installed on the system and made available to Python (through the CFFI mechanism) as a shared library. There are multiple ways to make the library visible to CFFI: it can be installed as a system library, the installation prefix can be passed in the odc_DIR
or ODC_DIR
environment variables, or the library directory can be included in LD_LIBRARY_PATH
. For example, if you cloned the odc source code to $HOME/odc and used $HOME/odc/build as the builddir, you could use export odc_DIR=$HOME/odc/build.
Python Package Installer
Install the package via PyPI:
pip install pyodc
Conda Forge
Install the package in Conda environment via conda-forge channel:
conda install -c conda-forge pyodc
Note
To use codc module, you can install an optional odc dependency via conda-forge channel:
conda install -c conda-forge odc
Check Installation
To check if the modules were installed correctly:
python
>>> import pyodc
>>> import codc # optional