C:\ta-lib>python setup.py install python: can't open file 'C:\\ta-lib\\setup.py': [Errno…
- User
C:\ta-lib>python setup.py install python: can't open file 'C:\ta-lib\setup.py': [Errno 2] No such file or directory
- Assistant
The error message indicates that Python cannot find the
setup.pyfile in the specified directory (C:\ta-lib). Here are some steps you can take to resolve the issue:-
Verify File Location: Make sure that the
setup.pyfile exists in theC:\ta-libdirectory. If you have not already downloaded or extracted the TA-Lib source files, you need to do so first. -
Download TA-Lib Source:
-
- User
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCOUNTERATTACK_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_DCPERIOD _ta_lib.obj : error LNK2001: unresolved external symbol TA_BBANDS _ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLRISEFALL3METHODS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetVersionString build\lib.win-amd64-cpython-312\talib_ta_lib.cp312-win_amd64.pyd : fatal error LNK1120: 339 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120 [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)
- Assistant
The errors you are encountering typically suggest an issue with compiling C extensions when trying to install the TA-Lib Python package from source. Here are a few steps you can take to resolve these issues: