Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Installing QuantLib on Python

  • 28-02-2018 09:47PM
    #1
    Banned (with Prison Access) Posts: 63 ✭✭


    Does anyone know what's the best way to install QuantLib on Python?

    I'm using Anaconda and would like to install QuantLib.


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    pip install quantlib-python
    conda install quantlib-python

    What problem are you having? Probably windows related - fix is to not use windows. If you persist then you have to build it yourself or find a prebuilt package somewhere, try the usual place (gohlke's website).


  • Banned (with Prison Access) Posts: 63 ✭✭Pluto Planet


    Ok, I ran "conda install -c tonyroberts quantlib" which seems to have installed quantlib in Anaconda as I can now see the package there.

    I'm using the Spyder IDE, how do I now set up Spyder to so I can use quantlib?

    Apologies if my questions are stupid, very new to this stuff. Trying to learn it for work.


  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    How many versions of python do you have on system? Which did you install quantlib to? Which is spyder using? Just point it at the right version.

    TBH use pycharm - pretty much everyone ragequits from spyder after a week or two

    Is noone in work helping you?


  • Banned (with Prison Access) Posts: 63 ✭✭Pluto Planet


    srsly78 wrote: »
    How many versions of python do you have on system? Which did you install quantlib to? Which is spyder using? Just point it at the right version.

    TBH use pycharm - pretty much everyone ragequits from spyder after a week or two

    Is noone in work helping you?

    How do you point spyder to a version, what does that involve?

    I don't know how many versions of python I have, I've downloaded loads of stuff at this stage trying to get it to work. I think I'm using python 3.6.


  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Spyder settings, select python version.

    Its up to you to organise your own environment. Having multiple copies of python will just make things confusing.


  • Advertisement
Advertisement