Не удалось создать колесо для TA-Lib в VS Code без Anaconda в Windows 10.Python

Программы на Python
Anonymous
Не удалось создать колесо для TA-Lib в VS Code без Anaconda в Windows 10.

Сообщение Anonymous »

Я пытаюсь установить TA-Lib в VS Code без conda.
В новом терминале VSC и venv я выполняю:

Код: Выделить всё

(trading) D:\CWD>python -m pip install TA-Lib 
и получение результата:

Код: Выделить всё

Collecting TA-Lib
Using cached TA-Lib-0.4.26.tar.gz (272 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy (from TA-Lib)
Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB)
Building wheels for collected packages: TA-Lib
Building wheel for TA-Lib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for TA-Lib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
:77: UserWarning: Cannot find ta-lib library, installation may fail.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\talib
copying talib\abstract.py -> build\lib.win-amd64-cpython-310\talib
copying talib\deprecated.py -> build\lib.win-amd64-cpython-310\talib
copying talib\stream.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_abstract.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_data.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_func.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_pandas.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_polars.py -> build\lib.win-amd64-cpython-310\talib
copying talib\test_stream.py -> build\lib.win-amd64-cpython-310\talib
copying talib\__init__.py -> build\lib.win-amd64-cpython-310\talib
running build_ext
building 'talib._ta_lib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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: Could not build wheels for TA-Lib, which is required to install pyproject.toml-based projects

Примечания: 1) Установить talib с помощью conda не составит труда. 2) Я загрузил необходимый пакет MS C++ по мере необходимости. Это видно в панели управления. Но, возможно, VSC требует некоторых настроек, чтобы его увидеть. Похоже это ключевой момент проблемы.
Вопрос: Как собрать колеса для TA-Lib без конда и установить TA-Lib?

Подробнее здесь: https://stackoverflow.com/questions/765 ... windows-10

Вернуться в «Python»