Closed cristeam29 closed 7 months ago
I just tried this on a fresh windows 11 computer:
1) Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib
.
2) Run x64 Native Tools Command Prompt
3) cd c:\ta-lib\c\make\cdr\win32\msvc
4) nmake
5) python3 -m pip install ta-lib
6) python3 -c "import talib; print(talib.__version__)"
Work's fine. I'm not sure what's going on with your Pycharm, but those errors imply that it can't find the library ta_libc_cdr.lib
in C:\ta-lib\c\lib\
, so perhaps check that file exists and was compiled properly (maybe dumpbin /symbols
or dumpbin /exports
)
Well, the ta_libc_cdr.lib file was there. But I suspected there might have been something wrong with the compilation. Since I didn't know how to check if this was successfull, I deleted the whole ta-lib folder from C drive and unzip it again and re-run nmake. And..... good news, it produced a different result, the sequence of compiled files was much larger. Went back to Pycharm pip install ta-lib and finally instalation is completed. So I guess your post did enough to convince me to start over again and finally make it. Thank you!
I'm glad it worked for you. I'm not sure what happened, perhaps you ran the x86 Native Tools Command Prompt
which builds 32-bit libraries.
In any event, it would be nicer to bundle the TA-Lib C library into wheels for binary installation, I should work on that sometime soon.
I'm struggling to install ta-lib on my win11 machine. What should've been just a pip install ta-lib and 20 sec later all done, transformed into an endless sequence of errors. I managed to progess with some of them, but now I am stuck with this one and no idea how to move forward. I'm running Python 3.10. I've done the steps below: Installed Visual Studio Community 2022 Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib Run "x64 Native Tools Command Prompt" cd C:\ta-lib\c\make\cdr\win32\msvc nmake Went back to Pycharm, hit again "pip install ta-lib" and I get the error below:
Does anyone know how to fix this to move forward?