Ubuntu下安装python

首先安装python3依赖的包

sudo apt-get install  python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev

然后安装python3即可

sudo apt-get install  python3
sudo apt-get install  python3-pip

你可能感兴趣的:(Ubuntu下安装python)