- Python defaults to version 2.6 in Liunx and can be upgraded to 2.7 first
The steps are as follows:
A. TAR-ZXVF python-2.7.11.tgz
B. Enter the Python-2.7.11 directory input./configure
C. Make
D. Make install
E. Whether to view the Python version or the system default version at this time, execute: mv/usr/bin/python/usr/bin/python2.6
F. Ln-s/usr/local/bin/python2.7/usr/bin/python
G. Again Python, the success is version 2.7.
- Use Pip to install Django, so install PIP first
A. Download get-pip.py
B. Run the file directly using Python, Python get-pip.py
- Pip installs Django
A. Pip Install django==1.11.6
B. Verify that the Django installation was successful: go to Python,import Django and look at the version: Django. VERSION
Above also can establish virtualenv environment, can refer to: https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/ 001432712108300322c61f256c74803b43bfd65c6f8d0d0000
Liunx Environment: Python2.7 and Django1.11.6 Environment construction