How do I install the QuantLib Package in Anaconda. I have tried the following code;
import QuantLib as ql
but I am getting the following result;
ModuleNotFoundError: No module named 'QuantLib'
Can anyone assist me
You first need to install the QuantLib package. The easiest way I found is to install Anaconda 4.3.1 (link), open a Command Prompt as Admin and run:
pip install QuantLib-Python
For me, this only worked on the latest version of Anaconda including Python 3.6, think the QuantLib-Python package was implemented in PIP only very recently. This might work for other recent installations of Python as well, but it did not work for me on older versions of Anaconda or Python 3.5.