python3.9.1安装爬虫akshare

python3.7.6安装:

安装python3

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

yum install libffi-devel

 

wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

tar -zxvf Python-3.9.1.tgz 

cd Python-3.9.1

 

./configure --prefix=/usr/local/python3
 make
make install
 ln -s /usr/local/python3/bin/python3 /usr/bin/python3
 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

 


 

vim /etc/profile

PATH=$PATH:$HOME/bin:/usr/local/python3/bin
export PATH

export NODE_HOME=/usr/local/node12
export PATH=$NODE_HOME/bin:$PATH



source ~/.bash_profile
python3 -V


 

 


 

安装node

wget https://nodejs.org/dist/v12.18.3/node-v12.18.3-linux-x64.tar.xz
tar -xvf node-v12.18.3-linux-x64.tar.xz
chown -R root:root node-v12.18.3-linux-x64
mv node-v12.18.3-linux-x64 node12
mv node12/ /usr/local
cd /usr/local/


 

vim /etc/profile

export NODE_HOME=/usr/local/node12
export PATH=$NODE_HOME/bin:$PATH



source /etc/profile
node -v
npm -v


 

安装akshare

 

https://www.akshare.xyz/zh_CN/latest/data/event/event.html?nsukey=pvrPiFmjl7sEx%2BgmAsFSTpJTosrFmjj0MZijBnqUN3CT%2BCOUrrXEHTySeAgUFww1Y5bTCtrtBxUcp6NJ3nQqyA4vukbu17TjO0Lsr7%2BXoHQ%2FHnn5wPOkM%2Fw6fLsM3x9ToXWm2vkvDEaydbzQ12kno9WzJAe4kQ38J%2B0xc57%2BipJtKCp4sNaKP75dd%2BoMcNzDmoBc24GUU7h4PQNjX3ahxg%3D%3D


 

  pip3 install akshare  --upgrade -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --user

 

posted @ 2020-08-14 15:43  zhouyuqiang  阅读(1614)  评论(0编辑  收藏  举报