Trouble about QuantLib-Python

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble about QuantLib-Python

Ruilong Xu
Hi
my system:
platform win7-32bit
python 2.7(using anaconda)
boost 1.59
QuantLib 1.7

I install QuantLib-Python following this tutorial
https://vineetv.wordpress.com/2015/07/07/installing-quantlib-python-windows/

It works for me at first,but when I type

import QuantLib in python

python tells me:No module named _QuantLib.

What should I do next?
Reply | Threaded
Open this post in threaded view
|

Re: Trouble about QuantLib-Python

Luigi Ballabio
In your Python installation (that is, the folder where your python.exe is located) you should have a folder Lib\site-packages. After you complete Vineet's instructions, you should have a folder QuantLib inside it, and inside the folder (among others) two files called QuantLib.py and _QuantLib.pyd.  Is this correct?

Luigi


On Wed, Dec 9, 2015 at 11:25 AM Ruilong Xu <[hidden email]> wrote:
Hi
my system:
platform win7-32bit
python 2.7(using anaconda)
boost 1.59
QuantLib 1.7

I install QuantLib-Python following this tutorial
https://vineetv.wordpress.com/2015/07/07/installing-quantlib-python-windows/

It works for me at first,but when I type

import QuantLib in python

python tells me:No module named _QuantLib.

What should I do next?




--
View this message in context: http://quantlib.10058.n7.nabble.com/Trouble-about-QuantLib-Python-tp17153.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
--

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

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Trouble about QuantLib-Python

Ruilong Xu
Thank You Very Much!
I have solved the trouble,maybe the reason is 'anaconda',anaconda makes python as a part of itself,
so I can import QuantLib in anaconda,but I can not do the same thing in python.