Import the main names to top level.
Actively maintained. Last release 6 weeks ago, commits in 18 of the last 26 weeks. A safe choice.
pip install quanteconQuantEcon.py
A high performance, open source Python code library for economics
from quantecon.markov import DiscreteDP
aiyagari_ddp = DiscreteDP(R, Q, beta)
results = aiyagari_ddp.solve(method='policy_iteration')
Installation
Install QuantEcon.py from PyPI:
pip install quantecon
If you use conda, install from conda-forge (Anaconda Distribution is not required):
conda install -c conda-forge quantecon
Usage
Once quantecon has been installed you should be able to import it as follows:
import quantecon as qe
You can check the version by running
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
pip install --upgrade quantecon
Examples and Sample Code
Many examples of QuantEcon.py in action can be found at Quantitative Economics. See also the