运行环境: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