window下python安装talib

window11+ py3.9.13 x64

首先,我们看windows系统下ta_lib安装的官方文档。

Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib.

必须先编译talib的c库

下载 ta-lib-0.4.0-msvc.zip 并解压到C盘根目录下,

This is a 32-bit binary release. If you want to use 64-bit Python, you will need to build a 64-bit version of the library. Some unofficial (and unsupported) instructions for building on 64-bit Windows 10, here for reference:

##这是一个 32 位二进制版本。 如果要使用 64 位 Python,则需要构建 64 位版本的库。 在 64 位 Windows 10 上构建的一些非官方(且不受支持)说明,供参考:

① Download and Unzip ta-lib-0.4.0-msvc.zip

下载并解压ta-lib-0.4.0-msvc.zip

② Move the Unzipped Folder ta-lib to C:\

#解压并将ta_lib放在C盘根目录

③ Download and Install Visual Studio Community 2015

#下载并安装Visual Studio Community 2015

Remember to Select [Visual C++] Feature

安装过程中切记勾选Visual C++功能

④ Build TA-Lib Library # 构建 TA-Lib 库

1)From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]

在开始菜单中搜索并打开[VS2015 x64 Native Tools Command Prompt]

2)Move to C:\ta-lib\c\make\cdr\win32\msvc

#输入cd C:\ta-lib\c\make\cdr\win32\msvc

3)Build the Library nmake

构建库,直接输入 nmake

4)pip install ta-lib
等待编译成功

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值