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

原文地址:https://www.cnblogs.com/cxscode/p/12786433.html