@@ -6,7 +6,7 @@ Installation
6
6
System Requirements
7
7
-------------------
8
8
9
- pycsw is written in `Python <http ://python.org >`_, and works with (tested) Python 3. Python 2 is no longer supported.
9
+ pycsw is written in `Python <https ://python.org >`_, and works with (tested) Python 3. Python 2 is no longer supported.
10
10
11
11
pycsw requires the following Python supporting libraries:
12
12
@@ -40,14 +40,14 @@ The 4 minute install:
40
40
41
41
$ virtualenv pycsw && cd pycsw && . bin/activate
42
42
$ git clone https://github.com/geopython/pycsw.git && cd pycsw
43
- $ pip install -e . && pip install -r requirements-standalone.txt
43
+ $ pip3 install -e . && pip3 install -r requirements-standalone.txt
44
44
$ cp default-sample.cfg default.cfg
45
45
$ vi default.cfg
46
46
# adjust paths in
47
47
# - server.home
48
48
# - repository.database
49
49
# set server.url to http://localhost:8000/
50
- $ python pycsw/wsgi.py
50
+ $ python3 pycsw/wsgi.py
51
51
$ curl http://localhost:8000/? service=CSW& version=2.0.2& request=GetCapabilities
52
52
53
53
@@ -79,8 +79,8 @@ The Clean and Proper Way
79
79
.. code-block :: bash
80
80
81
81
$ git clone git://github.com/geopython/pycsw.git
82
- $ python setup.py build
83
- $ python setup.py install
82
+ $ python3 setup.py build
83
+ $ python3 setup.py install
84
84
85
85
At this point, pycsw is installed as a library and requires a CGI ``csw.py ``
86
86
or WSGI ``pycsw/wsgi.py `` script to be served into your web server environment
@@ -96,7 +96,7 @@ Installing from the Python Package Index (PyPi)
96
96
# easy_install or pip will do the trick
97
97
$ easy_install pycsw
98
98
# or
99
- $ pip install pycsw
99
+ $ pip3 install pycsw
100
100
101
101
.. _opensuse :
102
102
@@ -151,10 +151,13 @@ For Windows installs, change the first line of ``csw.py`` to:
151
151
152
152
.. code-block :: python
153
153
154
- # !/Python27 /python -u
154
+ # !/Users/USERNAME/AppData/Local/Programs/Python/Python36 /python -u
155
155
156
156
.. note ::
157
157
The use of ``-u `` is required to properly output gzip-compressed responses.
158
+
159
+ .. note ::
160
+ ``USERNAME `` should match your username, and the Python version should match with your install (e.g. ``Python36 ``).
158
161
159
162
.. Tip ::
160
163
@@ -208,7 +211,7 @@ or use the `WSGI reference implementation`_:
208
211
209
212
.. code-block :: bash
210
213
211
- $ python ./pycsw/wsgi.py
214
+ $ python3 ./pycsw/wsgi.py
212
215
Serving on port 8000...
213
216
214
217
which will publish pycsw to ``http://localhost:8000/ ``
0 commit comments