简体   繁体   English

在Spyder编辑器上安装Anaconda中的QuantLib(Windows)

[英]Installing QuantLib in Anaconda on the Spyder Editor (Windows)

How do I install the QuantLib Package in Anaconda. 如何在Anaconda中安装QuantLib软件包。 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. 您首先需要安装QuantLib软件包。 The easiest way I found is to install Anaconda 4.3.1 ( link ), open a Command Prompt as Admin and run: 我找到的最简单的方法是安装Anaconda 4.3.1( 链接 ),打开命令提示符作为管理员并运行:

pip install QuantLib-Python pip安装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. 对我来说,这只适用于最新版本的Anaconda,包括Python 3.6,认为QuantLib-Python软件包最近才在PIP中实现。 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. 这可能也适用于其他最近安装的Python,但它在旧版本的Anaconda或Python 3.5上不适用于我。

I used this link download quantlib 1.7.1 to install in Windows 10 (I use Anaconda). 我使用此链接下载quantlib 1.7.1安装在Windows 10(我使用Anaconda)。 It was really smooth and no prob at all. 这真的很顺利,没有任何疑问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM