使用aiohttp的时候提示python版本必须大于3.5.2 将ubuntu中的python3.5.2升级至python3.7

使用以下命令

sudo add-apt-repository ppa:jonathonf/python-3.7
sudo apt update 
sudo apt install python3.7

过程中可能出现

没有 add-apt-repository这个命令

使用

sudo apt-get install python-software-properties
sudo apt-get update
sudo apt install software-properties-common 
sudo apt-get update

然后使用python3.7进入最新版本

上一篇:python – 如何确定给定port = 0时aiohttp选择哪个端口


下一篇:python – 使用aiohttp的HEAD请求是狗慢