1、sudo add-apt-repository ppa:deadsnakes/ppa 更改命令
sudo apt-get update
sudo apt-get install python3.6
2、查询安装的python
root@ubuntu:~$ ls /usr/local/lib/
perl python2.7 python3.5 python3.6
查询版本号python --version
3、将Python版本从2.7切换到3.6
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 3
sudo update-alternatives --config python
4、执行如下指令,解决pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案。
sudo python -m pip install --upgrade --force pip
sudo pip install setuptools==33.1.1
5、python -m pip install setuptools wheel aos-cube 再执行安装即可,
You are using pip version 8.1.1, however version 20.2.3 is available. You should consider upgrad