install tushare in python 3.6

Posted duan-qs

tags:

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

install tushare

(D:\Anaconda3) C:\Users\Administrator>pip install tushare
Collecting tushare
Downloading https://files.pythonhosted.org/packages/7b/e5/cb52700f5df4650b4eed
627b2a744401dd592e47ef003f24a7de2fc54cdd/tushare-1.2.37.tar.gz (168kB)
42% |█████████████▌ | 71kB 80kB/s eta 0:00:02
48% |███████████████▌ | 81kB 68kB/s eta 0:00:
54% |█████████████████▌ | 92kB 77kB/s eta 0:0
60% |███████████████████▌ | 102kB 73kB/s eta
67% |█████████████████████▌ | 112kB 79kB/s et
73% |███████████████████████▌ | 122kB 68kB/s
79% |█████████████████████████▌ | 133kB 64kB/
85% |███████████████████████████ | 143kB 73kB
91% |█████████████████████████████ | 153kB 68
97% |███████████████████████████████ | 163kB
100% |████████████████████████████████| 174kB 65kB/s
Requirement already satisfied: pandas>=0.18.0 in d:\anaconda3\lib\site-packages (from tushare) (0.20.3)
Requirement already satisfied: requests>=2.0.0 in d:\anaconda3\lib\site-packages (from tushare) (2.18.4)
Requirement already satisfied: lxml>=3.8.0 in d:\anaconda3\lib\site-packages (from tushare) (4.1.0)

Collecting simplejson>=3.16.0 (from tushare)
Downloading https://files.pythonhosted.org/packages/e3/24/c35fb1c1c315fc0fffe6
1ea00d3f88e85469004713dab488dee4f35b0aff/simplejson-3.16.0.tar.gz (81kB)
50% |████████████████ | 40kB 51kB/s eta 0:00:
63% |████████████████████ | 51kB 47kB/s eta 0
75% |████████████████████████ | 61kB 56kB/s e
88% |████████████████████████████ | 71kB 51kB
100% |████████████████████████████████| 81kB 58kB/s

Collecting bs4>=0.0.1 (from tushare)
Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f45617413
9ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Requirement already satisfied: python-dateutil>=2 in d:\anaconda3\lib\site-packages (from pandas>=0.18.0->tushare) (2.6.1)
Requirement already satisfied: pytz>=2011k in d:\anaconda3\lib\site-packages (from pandas>=0.18.0->tushare) (2017.2)
Requirement already satisfied: numpy>=1.7.0 in d:\anaconda3\lib\site-packages (from pandas>=0.18.0->tushare) (1.13.3)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in d:\anaconda3\lib\site-packages (from requests>=2.0.0->tushare) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in d:\anaconda3\lib\site-packages(from requests>=2.0.0->tushare) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in d:\anaconda3\lib\site-packages (from requests>=2.0.0->tushare) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in d:\anaconda3\lib\site-packages (from requests>=2.0.0->tushare) (2017.7.27.1)
Requirement already satisfied: beautifulsoup4 in d:\anaconda3\lib\site-packages (from bs4>=0.0.1->tushare) (4.6.0)
Requirement already satisfied: six>=1.5 in d:\anaconda3\lib\site-packages (from python-dateutil>=2->pandas>=0.18.0->tushare) (1.11.0)

Building wheels for collected packages: tushare, simplejson, bs4
Building wheel for tushare (setup.py) ... done
Stored in directory: C:\Users\Administrator\AppData\Local\pip\Cache\wheels\e9\af\11\928652eaf0286e9bc8da6dd39ec63df81de49613195ed81fe9
Building wheel for simplejson (setup.py) ... done
Stored in directory: C:\Users\Administrator\AppData\Local\pip\Cache\wheels\5d\1a\1e\0350bb3df3e74215cd91325344cc86c2c691f5306eb4d22c77
Building wheel for bs4 (setup.py) ... done
Stored in directory: C:\Users\Administrator\AppData\Local\pip\Cache\wheels\a0\b0\b2\4f80b9456b87abedbc0bf2d52235414c3467d8889be38dd472
Successfully built tushare simplejson bs4

Installing collected packages: simplejson, bs4, tushare
Successfully installed bs4-0.0.1 simplejson-3.16.0 tushare-1.2.37

(D:\Anaconda3) C:\Users\Administrator>

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

使用R语言 SDK调取tushare数据

python tushare安装

通过Python SDK 获取tushare数据

python+tushare获取股票每日停复牌信息

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

python+tushare获取沪深港股通持股明细