python tushare安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python tushare安装相关的知识,希望对你有一定的参考价值。

1.安装tushare前先安装lxml和pandas(我是win32下python3.4.0)

2.安装lxml,下载地址https://pypi.python.org/pypi/lxml/3.4.2

3.pandas,下载地址https://pypi.python.org/pypi/pandas

4.安装pandas时提示需要安装requests,先安装requests,easy_install requests

5.下载的pandas包是.whl包,要先安装wheel,pip install wheel

6.安装pandas,提示"is not a supported wheel on this platform".

shell中,输入import pip; print(pip.pep425tags.get_supported())进行查看,然后将.whl文件改名为pandas-0.20.0rc1-cp34-none-win32.whl

再安装pandas

7.下载tushare,https://pypi.python.org/pypi/tushare/

解压后进入文件目录进行安装,python setup.py install

以上是关于python tushare安装的主要内容,如果未能解决你的问题,请参考以下文章

python调用tushare获取A股周线行情

Tushare(金融数据接口包)

python调用tushare获取沪深A股票资金流向数据

使用python和tushare股票交易日历数据,判断节假日周末休市

配置python环境使用tushare股票数据

用python的tushare模块分析股票案例(python3经典编程案例)