安装python3.6
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6 python3.6-dev -y
安装ppa可能遇到问题: add-apt-respository command not found
网上查了一下资料,原来是需要
python-software-properties
于是
apt-get install python-software-properties
除此之外还要安装
software-properties-common
于是
apt-get install software-properties-common
然后就能用add-apt-repository了
安装pip3.6
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
pip添加清华镜像:https://blog.csdn.net/TH_NUM/article/details/83616939
本文详细介绍了如何在Linux环境下安装Python3.6及其开发工具,包括解决add-apt-repository命令未找到的问题,安装必要的软件包如python-software-properties和software-properties-common,以及使用wget下载并安装pip3.6。
585

被折叠的 条评论
为什么被折叠?



