|
From: Teddy O <tm...@ho...> - 2020-11-17 23:45:54
|
Still no luck. getting the same error when I uninstall and then reinstall using python -m pip install -U QuantLib and python -m pip install -U QuantLib-python Sent from Outlook<http://aka.ms/weboutlook> ________________________________ From: Luigi Ballabio <lui...@gm...> Sent: Tuesday, November 17, 2020 2:09 PM To: Teddy O <tm...@ho...> Cc: qua...@li... <qua...@li...> Subject: Re: [Quantlib-users] DLL Load Failed Ok, I see. The DLL you have, _QuantLib.cp37-win_amd64.pyd, is compiled for Python 3.7. You probably have multiple versions of Python installed, and the version of pip you used to install QuantLib was the one for 3.7. Instead of calling pip directly (which might give you the wrong version for the Python you want to use), you can try something like python -m pip install -U QuantLib which will use the pip corresponding to the python you're running. Luigi On Tue, Nov 17, 2020 at 3:03 PM Teddy O <tm...@ho...<mailto:tm...@ho...>> wrote: When I run it in the powershell it says 64bit. "Import Quantlib" also gives me the same error when I run it here as well. Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32Type "help", "copyright", "credits" or "license" for more information. Sent from Outlook<http://aka.ms/weboutlook> ________________________________ From: Luigi Ballabio <lui...@gm...<mailto:lui...@gm...>> Sent: Tuesday, November 17, 2020 8:09 AM To: Teddy O <tm...@ho...<mailto:tm...@ho...>> Cc: qua...@li...<mailto:qua...@li...> <qua...@li...<mailto:qua...@li...>> Subject: Re: [Quantlib-users] DLL Load Failed >From the file names and paths, it seems you have the 64-bit version of QuantLib installed but spyder is using 32-bit python. May you check that? Luigi On Tue, Nov 17, 2020 at 3:52 AM Teddy O <tm...@ho...<mailto:tm...@ho...>> wrote: I installed quantlib using "pip install QuantLib" and now I'm getting the below error. I'm using windows 10 and Spyder IDE. I don't see any dll file called _QuantLib, only _QuantLib.cp37-win_amd64.pyd. File "C:\Conda\lib\site-packages\QuantLib\QuantLib.py", line 13, in from . import _QuantLib ImportError: DLL load failed: The specified module could not be found. These are my path variables: C:\Conda\python38.zip C:\Conda\DLLs C:\Conda\lib C:\Conda C:\Conda\lib\site-packages C:\Conda\lib\site-packages\win32 C:\Conda\lib\site-packages\win32\lib C:\Conda\lib\site-packages\Pythonwin C:\Conda\lib\site-packages\IPython\extensions C:\Users\name t\.ipython Has anyone experienced a similar problem? Thanks Sent from Outlook<http://aka.ms/weboutlook> _______________________________________________ QuantLib-users mailing list Qua...@li...<mailto:Qua...@li...> https://lists.sourceforge.net/lists/listinfo/quantlib-users |