| 1 |
.. _installation: |
| 2 |
|
| 3 |
Installation |
| 4 |
============ |
| 5 |
|
| 6 |
Stable Version |
| 7 |
-------------- |
| 8 |
|
| 9 |
We recommend installing Pecan with `pip |
| 10 |
<http://www.pip-installer.org/>`_, but you |
| 11 |
can also try with :command:`easy_install`. Creating a spot in your environment |
| 12 |
where Pecan can be isolated from other packages is best practice. |
| 13 |
|
| 14 |
To get started with an environment for Pecan, we recommend creating a new |
| 15 |
`virtual environment <http://www.virtualenv.org>`_ using `virtualenv |
| 16 |
<http://www.virtualenv.org>`_:: |
| 17 |
|
| 18 |
$ virtualenv pecan-env |
| 19 |
$ cd pecan-env |
| 20 |
$ source bin/activate |
| 21 |
|
| 22 |
The above commands create a virtual environment and *activate* it. This |
| 23 |
will isolate Pecan's dependency installations from your system packages, making |
| 24 |
it easier to debug problems if needed. |
| 25 |
|
| 26 |
Next, let's install Pecan:: |
| 27 |
|
| 28 |
$ pip install pecan |
| 29 |
|
| 30 |
|
| 31 |
Development (Unstable) Version |
| 32 |
------------------------------ |
| 33 |
If you want to run the latest development version of Pecan you will |
| 34 |
need to install git and clone the repo from GitHub:: |
| 35 |
|
| 36 |
$ git clone https://github.com/pecan/pecan.git |
| 37 |
|
| 38 |
Assuming your virtual environment is still activated, call ``setup.py`` to |
| 39 |
install the development version.:: |
| 40 |
|
| 41 |
$ cd pecan |
| 42 |
$ python setup.py develop |
| 43 |
|
| 44 |
.. note:: |
| 45 |
The ``master`` development branch is volatile and is generally not |
| 46 |
recommended for production use. |
| 47 |
|
| 48 |
Alternatively, you can also install from GitHub directly with ``pip``.:: |
| 49 |
|
| 50 |
$ pip install -e git://github.com/pecan/pecan.git#egg=pecan |