Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue (Windows specific) #700

Open
dannyyqyq opened this issue Jan 14, 2025 · 15 comments
Open

Installation issue (Windows specific) #700

dannyyqyq opened this issue Jan 14, 2025 · 15 comments

Comments

@dannyyqyq
Copy link

dannyyqyq commented Jan 14, 2025

I have been trying for sometime but to no avail, these are the steps i have done:

  1. Visual studio community installed, C++ development, windows SDK
  2. I have tested and installed the windows executable installer in both C drive and the default path program file.
    "https://ta-lib.org/install/#executable-installer-recommended"
  3. Downloaded the MSCV path to recompile via nmake:
    ta-lib-0.4.0-msvc.zip
  4. Recompiled using MSCV -> unzip C drive, enter mscv path-> nmake

I am using python 3.12, windows 11 home amd 64.
I have tried various ways and always ends up with wheel failure.

'''
building 'talib._ta_lib' extension
creating build\temp.win-amd64-cpython-312\Release\talib
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\ta-lib\c\include -IC:\Users\yq198\AppData\Local\Temp\pip-build-env-14m4eylb\normal\Lib\site-packages\numpy_core\include -IC:\Users\yq198\anaconda3\include -IC:\Users\yq198\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\cppwinrt" /Tctalib/_ta_lib.c /Fobuild\temp.win-amd64-cpython-312\Release\talib_ta_lib.obj
_ta_lib.c
C:\Users\yq198\AppData\Local\Temp\pip-build-env-14m4eylb\normal\Lib\site-packages\numpy_core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
talib/_ta_lib.c(12658): warning C4244: '=': conversion from 'npy_intp' to 'npy_int', possible loss of data
talib/_ta_lib.c(12703): warning C4244: '=': conversion from 'npy_intp' to 'npy_int', possible loss of data
talib/_ta_lib.c(12757): warning C4244: '=': conversion from 'npy_intp' to 'npy_int', possible loss of data
talib/_ta_lib.c(12820): warning C4244: '=': conversion from 'npy_intp' to 'npy_int', possible loss of data
talib/_ta_lib.c(13678): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(13683): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(13924): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(14157): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(14384): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(14389): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(14594): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(14819): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(15376): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(15852): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(16092): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(16554): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(31513): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(31713): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(32240): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(32646): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(32849): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(34392): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(34577): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(34762): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(34947): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(35132): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(35661): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(35875): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(35880): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(35885): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36155): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36165): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36175): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36390): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36856): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(36861): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(37061): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(37246): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(37680): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(37891): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(38091): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(38286): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(38471): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(38669): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(38869): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(39122): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(39340): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(39535): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(39941): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(40365): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(40583): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(40802): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(40807): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(40997): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(41182): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(41367): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(41552): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(41737): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(42810): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43173): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43441): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43446): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43456): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43733): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43738): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(43997): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(44002): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(44007): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(44403): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(44600): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(45122): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(45521): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(45706): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(45891): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(46344): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(46349): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(46354): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(46569): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(47003): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(47206): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(58859): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(58864): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59104): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59333): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59556): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59561): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59756): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(59976): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(60506): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(60977): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(61209): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(61663): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(76547): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(76737): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(77237): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(77626): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(77825): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(79282): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(79457): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(79632): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(79807): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(79982): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80481): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80685): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80690): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80695): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80957): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80967): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(80977): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(81184): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(81634): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(81639): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(81832): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(82007): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(82411): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(82621): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(82811): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(82999): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(83174): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(83349): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(83541): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(83763): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(83977): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(84165): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(84554): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(84967): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85181): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85393): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85398): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85578): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85753): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(85928): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(86103): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(86278): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(87307): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(87650): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(87908): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(87913): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(87923): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88198): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88203): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88460): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88465): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88470): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(88851): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(89038): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(89530): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(89915): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90090): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90265): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90704): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90709): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90714): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(90925): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(91345): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(91544): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94758): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94760): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94778): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94793): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94808): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94810): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94833): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94848): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94873): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94893): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94923): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(94943): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95338): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95353): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95378): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95398): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95413): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95468): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95483): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95498): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95513): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95528): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95553): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95573): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95575): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95577): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95598): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95602): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95606): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95638): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95673): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95675): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95698): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95713): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95733): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95748): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95763): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95778): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95793): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95808): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95823): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95838): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95853): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95868): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95888): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95908): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95923): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95938): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95940): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95963): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95978): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(95993): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96008): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96023): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96118): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96138): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96158): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96160): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96164): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96193): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96195): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96218): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96220): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96222): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96253): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96268): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96298): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96318): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96333): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96348): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96368): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96370): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96372): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96393): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96418): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(96433): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97841): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97843): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97861): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97876): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97891): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97893): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97916): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97931): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97956): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(97976): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98006): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98026): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98421): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98436): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98461): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98481): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98496): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98551): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98566): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98581): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98596): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98611): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98636): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98656): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98658): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98660): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98681): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98685): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98689): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98721): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98756): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98758): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98781): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98796): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98816): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98831): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98846): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98861): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98876): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98891): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98906): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98921): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98936): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98951): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98971): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(98991): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99006): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99021): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99023): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99046): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99061): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99076): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99091): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99106): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99201): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99221): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99241): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99243): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99247): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99276): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99278): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99301): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99303): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99305): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99336): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99351): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99381): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99401): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99416): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99431): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99451): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99453): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99455): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99476): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99501): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(99516): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib/_ta_lib.c(101603): warning C4244: '=': conversion from 'Py_ssize_t' to 'long', possible loss of data
talib/_ta_lib.c(102012): warning C4244: '=': conversion from 'Py_ssize_t' to 'long', possible loss of data
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Users\yq198\anaconda3\libs /LIBPATH:C:\Users\yq198\anaconda3 /LIBPATH:C:\Users\yq198\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\um\x64" ta-lib.lib /EXPORT:PyInit__ta_lib build\temp.win-amd64-cpython-312\Release\talib_ta_lib.obj /OUT:build\lib.win-amd64-cpython-312\talib_ta_lib.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\talib_ta_lib.cp312-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file 'ta-lib.lib'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\link.exe' failed with exit code 1181
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ta-lib
Failed to build ta-lib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ta-lib)
'''

Any assistance is greatly appreciated! Thank you very much!

@mrjbq7
Copy link
Member

mrjbq7 commented Jan 14, 2025

LINK : fatal error LNK1181: cannot open input file 'ta-lib.lib'

This indicates its looking for ta-lib as a library name, which is the new library name with the TA-Lib 0.6 releases (https://ta-lib.org/install/).

The upstream TA-Lib C library released version 0.6.1 and changed the library name to -lta-lib from -lta_lib. After trying to support both via autodetect and having some issues, we have decided to support three feature branches:

  • ta-lib-python 0.4.x (supports ta-lib 0.4.x and numpy 1)
  • ta-lib-python 0.5.x (supports ta-lib 0.4.x and numpy 2)
  • ta-lib-python 0.6.x (supports ta-lib 0.6.x and numpy 2)

so choose the one you need...

@dannyyqyq
Copy link
Author

dannyyqyq commented Jan 14, 2025

Thanks for your reply, but my apologies i am foreign to all this...
So i tried again the following:

  1. Downloaded the windows installer and installed necessarily files in the system
    https://ta-lib.org/install/#executable-installer-recommended
  2. Recomplie with nmake at the newly installed mscv path

I have checked that the ta-lib.lib is indeed there @ ""C:\ta-lib\lib\ta-lib.lib""
Got the same erorr, am i missing anything? Thank you once again!

@mrjbq7
Copy link
Member

mrjbq7 commented Jan 14, 2025

Hmm, I wonder if the newer 0.6 releases install to a different location that we're not automatically looking for.

I guess I would suggest:

  1. run ta-lib<0.6 to use the original TA-Lib 0.4 release
  2. or, find where the installer installs it and use TA_LIBRARY_PATH and TA_INCLUDE_PATH to specify it before installing....

I will troubleshoot it when I have time.

@mario4tier
Copy link
Member

mario4tier commented Jan 14, 2025

Since TA-Lib core 0.6.2, the windows installer is closer to best practice.

The 64-bits library is now installed in C:\Program Files\TA-Lib (and 32 bits in C:\Program Files (x86)\TA-Lib).

I will let @mrjbq7 to follow up, since the ta-lib-python need a change to look for the new location and name "ta-lib-static.lib" :
image

@mario4tier
Copy link
Member

mario4tier commented Jan 14, 2025

@dannyyqyq Consider also the opportunity to fix setup.py and contribute a PR (I think it is a relatively easy change) 🙂

(ta-lib-python does not use the shared library so setup.py should search only for ta-lib-static.lib. You can ignore the ta-lib.dll and its import lib ta-lib.lib)

@mario4tier mario4tier changed the title Installation issue Installation issue (Windows specific) Jan 14, 2025
@mrjbq7
Copy link
Member

mrjbq7 commented Jan 14, 2025

@dannyyqyq perhaps try the latest git master after 7d4a606 which adds the new locations?

@mario4tier
Copy link
Member

@mrjbq7 You need also to handle ta_libc_cdr being renamed ta-lib-static.lib. Building of "ta_libc_cdr" is deprecated. May be the safest would be to search both... with ta-lib-static.lib being preffered... or break from the past and force users to install >= 0.6.2

@dannyyqyq
Copy link
Author

Thanks for the support guys! Appreciate it!

Currently i tried running the latest source via 'python setup.py install' and got this error:
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\ta-lib\c\include "-Ic:\Program Files\TA-Lib\includec:\Program Files (x86)\TA-Lib\include" -IC:\Users\yq198\anaconda3\Lib\site-packages\numpy\core\include -IC:\Users\yq198\anaconda3\include -IC:\Users\yq198\anaconda3\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\cppwinrt" /Tctalib/_ta_lib.c /Fobuild\temp.win-amd64-cpython-312\Release\talib_ta_lib.obj
_ta_lib.c
talib/_ta_lib.c(1223): fatal error C1083: Cannot open include file: 'ta_libc.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe' failed with exit code 2

Then i tried adding onto the env path:

  1. C:\Program Files\TA-Lib\include (file is within this path)
  2. C:\Program Files\TA-Lib
  3. set TALIB_PATH="C:\Program Files\TA-Lib"

Still resulted in the above error.

@mrjbq7
Copy link
Member

mrjbq7 commented Jan 15, 2025 via email

@dannyyqyq
Copy link
Author

From what i see, i dnot think it changed, below is a example of the path of the ta-lib after i did another clean installation to make sur the path works.. not sure if it can help..
image

@dannyyqyq
Copy link
Author

Latest update:
I think they are some missing commas in the dirs:
image
Updated and reran got another error:
image

Once again, thanks for the assistance!

@mrjbq7
Copy link
Member

mrjbq7 commented Jan 15, 2025

Okay, so very sorry for the missing commas. I have also adjusted it to use ta-lib-static library name on Windows. Can you try again with the latest master using a4c9473?

@dannyyqyq
Copy link
Author

dannyyqyq commented Jan 15, 2025

Great news, the installation now works!
image
image
However when i went into python to test out the packages:
it fails at importing shown below..
image

@mrjbq7
Copy link
Member

mrjbq7 commented Jan 15, 2025

That last screenshot is showing a different directory than the .egg location in the middle screenshot. Try and be in a different directory so it imports the site-packages one?

@dannyyqyq
Copy link
Author

Great, it is working now! Thank you very much for your assistance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants