Installation
============
Before installing `quantecon` we recommend you install the `Anaconda `_ Python distribution,
which includes a full suite of scientific python tools.
Next you can install quantecon by opening a terminal prompt and typing
.. code:: bash
pip install quantecon
and using `conda-forge` by typing
.. code:: bash
conda install -c conda-forge quantecon
.. note::
There are `quantecon` packages available in both the main `anaconda` channel
and the `conda-forge` channel. The official channel often lags behind the most
recent release that is available on `conda-forge`
You can see the latest `versions here `_
Usage
-----
Once `quantecon` has been installed you should be able to import it as follows:
.. code:: python
import quantecon as qe
You can check the version by running
.. code:: python
print(qe.__version__)
If your version is below what's available on `PyPI `_ then it is time to upgrade.
This can be done by running
.. code:: bash
pip install --upgrade quantecon
Downloading the `quantecon` Repository
--------------------------------------
An alternative is to download the sourcecode of the `quantecon` package and install it manually from
`the github repository `_.
For example, if you have git installed type
.. code:: bash
git clone https://github.com/QuantEcon/QuantEcon.py
Once you have downloaded the source files then the package can be installed by running
.. code:: bash
cd QuantEcon.py
pip install .
(To learn the basics about setting up Git see `this link `_).
Examples and Sample Code
------------------------
Many examples of QuantEcon.py in action can be found at `Quantitative Economics `_.
QuantEcon.py is part of the QuantEcon organization (A NumFOCUS fiscally sponsored project).