没有名为“ quantlib”的模块

问题描述

我通过conda install -c tonyroberts quantlib installed quantlib,在anaconda的已安装库中也有此文件

enter image description here

但是我有一个错误

import quantlib as ql

ModuleNotFoundError:没有名为“ quantlib”的模块

解决方法

您应将其导入为:

hostfxr.dll