QuantLib
QuantLib copied to clipboard
Cannot import QuantLib
I use miniforge and conda to mange my virtual environments and I use a M1 MacBook with Montray 12.4.
I trying everything I could to install the QuantLib-Python. I created a vanila environment in conda with python=3.9. When I tried to import QuantLib I got: ModuleNotFoundError: No module named 'QuantLib'.
- Running conda list on my new environment I can see that the package is installed in my environment directory and the package folder is there.
- I also I tried running brew install QuantLib.
- I tried removing everything and doing it again.
After some more trials of a mix of the above I got this message:
** Is there a way to run QuantLib in MacOS 12.4 with a M1?

Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.
Was there any follow-up/solution to this? I am having a similar issue.
So far we didn't provide a Python wheel for QuantLib on M1. I'll try to get hold of an M1 Mac and create wheels for the next release, but as of today I can't guarantee it.
I don't know if the conda people managed to compile one for their environment.
As of version 1.28, you should be able to run pip install QuantLib and get wheels for M1 macs.