QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Cannot import QuantLib

Open ithakis opened this issue 3 years ago • 1 comments
trafficstars

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? Screenshot 2022-09-15 at 14 47 12

ithakis avatar Sep 15 '22 12:09 ithakis

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.

boring-cyborg[bot] avatar Sep 15 '22 12:09 boring-cyborg[bot]

Was there any follow-up/solution to this? I am having a similar issue.

bakj1979 avatar Oct 13 '22 14:10 bakj1979

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.

lballabio avatar Oct 14 '22 10:10 lballabio

As of version 1.28, you should be able to run pip install QuantLib and get wheels for M1 macs.

lballabio avatar Nov 07 '22 12:11 lballabio