Skip to content

Commit

Permalink
ta-lib 升级到0.6X,简化安装
Browse files Browse the repository at this point in the history
  • Loading branch information
myhhub committed Jan 16, 2025
1 parent 72902ba commit fd3bebe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,20 +290,11 @@ python pipreqs --encoding utf-8 --force ./
### 4.安装 talib

```
第一种方法. pip 下安装
(1)https://www.ta-lib.org/下载并解压ta-lib-0.4.0-msvc.zip
(2)解压并将ta_lib放在C盘根目录
(3)https://visualstudio.microsoft.com/zh-hans/downloads/下载并安装Visual Studio Community,安装切记勾选Visual C++功能
(4)Build TA-Lib Library # 构建 TA-Lib 库
①在开始菜单中搜索并打开[Native Tools Command Prompt](根据操作系统选择32位或64位)
②输入 cd C:\ta-lib\c\make\cdr\win32\msvc
③构建库,输入 nmake
(5)安装完成。
第二种方法. Anaconda 下安装
(1)打开Anaconda Prompt终端。
(2)在终端输入命令行conda install -c conda-forge ta-lib 。
(3)此处确认是否继续安装?输入y 继续安装,直到完成
(4)安装完成。
https://ta-lib.org/install/ 下载最新的ta-lib,按安装说明进行安装。
安装方式按官方建议,更省时省事:
Windows Executable Installer
macOS Homebrew
Linux Debian packages
```
### 5.安装 Navicat(可选)

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ numpy==2.2.1
pandas==2.2.3
py_mini_racer==0.6.0
mini-racer==0.12.4
TA_Lib==0.5.1
TA_Lib==0.6.1
arrow==1.3.0
bokeh==3.6.2
PyMySQL==1.1.1
requests==2.32.3
Logbook==1.8.0
SQLAlchemy==2.0.36
SQLAlchemy==2.0.37
tornado==6.4.2
tqdm==4.67.1
easytrader==0.23.0
Expand Down

0 comments on commit fd3bebe

Please sign in to comment.