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
pip3 install akshare --upgrade -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --user