Re: Python question

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Python-question-tp3760p3761.html

On 04/14/05 19:22:15, Travis Brady wrote:
>
> I haven't yet started to use QuantLib, but am very curious to take it
> for a spin.
> How does one use Quantlib from Python?
> I'm running Win2k and Python 2.4.1, can I just run the Quantlib windows
> binary?  Do I need to download something special?

Travis,
        there's no binary---the Windows installer actually installs the  
source tree, and you'll have to compile it. Afterwards, you should download  
the QuantLib-Python bindings and compile those as well. You'll probably  
need to use Visual C++ 7.1, because Python requires it since version 2.4.
Write back if you need compilation instructions, but the process isn't  
hard: for the library, open the VC7 project and compile it; and for the  
Python bindings, enter the QuantLib-Python directory from the command line  
and type "python setup.py build test install".

Later,
        Luigi

----------------------------------------

Vin: It's like this fellow I knew in El Paso. One day, he just took
all his clothes off and jumped in a mess of cactus. I asked him that
same question, "Why?"
Calvera: And?
Vin: He said, "It seemed like a good idea at the time."
-- The Magnificent Seven