PyCSW Installation



Set up Python Environment

Create and activate the conda virtual environment for PyCSW:

conda create --name py364_pycsw python=3.6.4
source activate py364_pycsw

In this case, we use Python 3.6.4 as the base version of Python. The environment is located at: ~/anaconda3/envs/py364_pycsw

Install PyCSW

git clone && cd pycsw
pip install -e . && pip install -r requirements.txt
cp default-sample.cfg default.cfg
nano default.cfg
# adjust paths in
# - server.home
# - repository.database
# set server.url to http://localhost:8000/

$ python csw.wsgi
$ curl http://localhost:8000/?service=CSW&version=2.0.2&request=GetCapabilities


Incompatible library version: requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0


conda install libxml2