安装aiohttp遇到的问题
我用的是ubuntu16,其中自带的python3版本为3.5.2,安装aiohttp时就出现问题了
ERROR: Package ‘aiohttp’ requires a different Python: 3.5.2 not in ‘>=3.5.3’
版本不支持,又不想升级,因为之前用了python3.7,结果后来跟3.5的用着用着就混了,搞得我不得不重装了个虚拟机,所这次选择还是用自带的3.5版本
- 先安装async-timeout(如果没有的话就安装,有的话就不用了),因为最新版的
aiohttp 3.6.2 has requirement async-timeout<4.0,>=3.0
所以安装降级的async-timeout
输入命令
pip3 install async-timeout==2.0.1
2. 安装aiohttp(2.2.0)
pip3 install aiohttp==2.2.0
这样就安装完成啦!
觉得文章有用的小伙伴就点个赞吧,爱你哟!❤