Alibaba Cloud's lightweight server used here
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
waits for the download to complete
tar -zxvf Python-3.8.1.tgz
cd Python-3.8.1
Installation dependencies
yum -y install libffi-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
Check whether the current environment meets the installation requirements
./configure
make && make install
环境变量修改
1. # vi ~/.bashrc
2. PATH=$PATH:/home/Python-3.8.1 (这里每人都不同,需要看一下自己python的路径在哪里决定,pwd命令可查看当前的本地路径)
3. export PATH
4. source ~/.bashrc
The construction is complete!
Next install pip
python -m pip install --upgrade pip --force-reinstall
Install django for
more information, see WeChat applet development