简体   繁体   中英

Anaconda3 using JupyterNotebook; ModuleNotFoundError: No module named 'Quantlib'

I have installed Anaconda Navigator and launched JupyterNotebook I have also verified that Quantlib has been installed - both in JupyterNotebook and via the 'cmd' prompt on my PC.

However, when I try to run [import Quantlib as ql] in JupyterNotebook, I get a ModuleNotFoundError. Why is this happening, and what can I do to fix it?

The version of Python installed on my local drive is 3.8.8, but Jupyter Notebook says 3.7.4 when I try to check which version is being run (not sure if this is relevant information?)

I am working in Windows, and old Microsoft 2007 software.

Attached image of the error message

Thanks in advance for your help, Tlhogi

The package name is QuantLib with a capital L, not Quantlib, so import QuantLib as ql should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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