Python学习笔记
Python学习笔记安装最新版
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
如果报错:ModuleNotFoundError: No module named 'apt_pkg',是用为存在多个python3版本先恢复3.6:sudo ln -sf /usr/bin/python3.6 /usr/bin/python3,或update-alternatives切换命令行版本sudo update-alternatives --config python
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
sudo update-alternatives --config python
sudo update-alternatives --config python3
版权声明
本文仅代表作者观点,不代表博信信息网立场。
上一篇:audit审计方法是什么 下一篇:Redis中怎么应对缓存热key问题