我正在嘗試安裝QuantLib Python。所以,我遵循並安裝了:安裝QuantLib的問題Python
1)Anaconda3,boost_1_64_0,QuantLib-1.10,QuantLib-SWIG-1.10,swigwin-3.0.12。
2)我使用Visual Studio 2017,QuantLib進行安裝。我跟着YouTube視頻,並設法正確安裝並運行示例。
3)然後我在http://quantlib.org/install/windows-python.shtml切換回適應症,我執行命令:
cd C:\local\QuantLib-SWIG-1.10\Python
set QL_DIR=C:\local\QuantLib-1.10
set INCLUDE=C:\local\boost_1_64_0
python setup.py build
但失敗......總結我得到什麼:
C:\ Program Files文件(86 )\ Microsoft Visual Studio 14.0 \ VC \ BIN \ x86_amd64 \ link.exe/nologo/INCREMENTAL:NO/LTCG/DLL/MANIFEST:EMBED,ID = 2/MANIFESTUAC:NO/LIBPATH:C:\ local \ Anaconda3 \ libs/LIBPATH:C:\ local \ Anaconda3 \ PCbuild \ amd64 /LIBPATH:C:\local\QuantLib-1.10\lib「/ LIBPATH:C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ LIB \ amd64」「/LIBPATH:C:\ Program Files(x86)\ Windows Kits \ 10 \ lib \ 10.0.15063.0 \ u crt \ x64「」/ LIBPATH:C:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ lib \ um \ x64「」/ LIBPATH:C:\ Program Files(x86)\ Windows Kits \ lib \ 10.0.15063.0 \ um \ x64「/ EXPORT:PyInit__QuantLib build \ temp.win-amd64-3.6 \ Release \ QuantLib/quantlib_wrap.obj /OUT:build\lib.win-amd64-3.6\QuantLib_QuantLib.cp36-win_amd64。 PYD /IMPLIB:build\temp.win-amd64-3.6\Release\QuantLib_QuantLib.cp36-win_amd64.lib /子系統:窗戶/機:64
LINK : fatal error LNK1104: cannot open file 'QuantLib-vc140-x64-mt.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1104
我有兩個文件QuantLib-vc141-MT-GD .lib和QuantLib-vc141-mt.lib在文件夾C:\ local \ QuantLib-1.10 \ lib中。我相信這個問題與我沒有正確分配的一些路徑有關,但我不知道還有什麼可以嘗試的。謝謝!