安裝tushare
1.下載最新版軟件python3支持
(版本號查詢地址https://docs.anaconda.com/anaconda/install/linux):
curl -O https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
2. 運(yùn)行安裝程序python3:
bash Anaconda3-5.0.1-Linux-x86_64.sh
3.下載最新版軟件python2(版本號查詢地址https://docs.anaconda.com/anaconda/install/linux):
curl -O https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh
4. 運(yùn)行安裝程序python2:
bash Anaconda2-5.0.1-Linux-x86_64.sh
5.安裝BeautifulSoup4(否則會報(bào)錯No Module Named bs4)
pip install BeautifulSoup4
6.安裝其余支持文件
如pandas/numpy/lxml等等,默認(rèn)已經(jīng)通過anaconda/miniconda等安裝完畢
miniconda下的命令如下:
python -V
conda install numpy
conda install pandas
conda install matplotlib
6.安裝主文件
pip install tushare