V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
a19950321
V2EX  ›  Python

ta-lib 安装问题

  •  
  •   a19950321 · 2019-01-18 11:27:27 +08:00 · 1184 次点击
    这是一个创建于 1918 天前的主题,其中的信息可能已经有所发展或是发生改变。
    # 编译安装
    sudo ./configure --prefix=/usr
    sudo make
    sudo make install

    这是 linux 下的命令
    win10 下应该怎么装
    1 条回复    2019-01-22 14:19:18 +08:00
    zcsnbb
        1
    zcsnbb  
       2019-01-22 14:19:18 +08:00
    #### Windows 下
    ```pip install ta-lib```
    然后 发现了一个大坑
    ```
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
    ```
    报了这个错 说我没有 vc++14.0 什么的 很贴心的说可以去这个网站下
    点开以后 404,好贴心啊

    最后找到
    到这里找到合适的文件
    ```http://www.lfd.uci.edu/~gohlke/pythonlibs/```
    可以搜索 或者 而根据他的索引 反正自己发挥吧

    我的是 TA_Lib ‑ 0.4.17 ‑ cp36 ‑ cp36m ‑ win_amd64.whl
    36 嘛 就是代表的 python 版本 后面呢 就是 32 位 64 位
    ,下载下来,放在 C:\Python36\Lib 文件夹里

    然后再地址栏 cmd

    ```pip install TA_Lib-0.4.10-cp27-cp27m-win32.whl```
    成功!

    安装成功
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1313 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.