imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13

要安装myqr模块,结果最后时刻蹦出这个东西来:
imageio requires Python ‘>=3.5’ but the running Python is 2.7.13
心累的感觉,最后查找各种方法,总算解决了
参考文章:Linux设置默认Python版本
原来Linux里面默认安装的是Python is 2.7.13
我需要把Python切换到3以上版本
imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13
之后输入:cd /usr/bin/
/usr/bin# ls -l | grep python
查看Python信息
imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13
再输入这两个命令:
sudo rm -rf python
sudo ln -s /usr/bin/python3 /usr/bin/python
imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13
之后查看一下Python版本
imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13