Ubuntu 安装Python3.6


运行环境:Ubuntu 16.04

  • 安装pip和pip3

sudo apt-get install python-setuptools
sudo apt-get install python3-setuptools
sudo apt-get install openssl libssl-dev
sudo apt-get install python-pip
sudo apt-get install python3-pip
  • 下载安装python3
wget -c https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar -xzvf Python-3.6.3.tgz   
cd Python-3.6.3/
sudo ./configure
sudo make
sudo make install
  • 使用 pip3 安装 Django

pip3 install -pre django==2.0



评论

支持上传图片(拖动图片或者截图粘贴)

0 评论