Python-2.7.11+Django-1.9.4安裝配置

來源:互聯網
上載者:User

Python-2.7.11+Django-1.9.4安裝配置

Python-2.7.11+Django-1.9.4安裝配置

1.去python官網下載2.7的最新版本

https://www.python.org/downloads

1.1 解壓Python-2.7.11.tgz

tar xvf Python-2.7.11.tgz

1.2 編譯安裝

cd Python-2.7.11./configure --prefix=/usr/local/python-2.7.11make && make install

1.3 把命令加入環境變數

ln -s /usr/local/python-2.7.11/bin/python2.7 /usr/bin/python2.7

2.安裝 setuptools 20.3.1

2.1 下載源碼包安裝方式

 https://pypi.python.org/pypi/setuptools#code-of-conduct
tar xvf setuptools-20.3.1.tar.gz
cd setuptools-20.3.1
python setup.py install

2.2 線上安裝方式

wget https://bootstrap.pypa.io/ez_setup.py -O - | python2.7 - --user

3.安裝Django-1.9.4

解壓tar xvf Django-1.9.4.tar.gz安裝cd Django-1.9.4python2.7 setup.py install

4.測試,匯入django模組

python2.7 Python 2.7.11 (default, Mar 23 2016, 11:35:38) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import django>>> 

Ubuntu 14.04下Django+MySQL安裝部署全過程

Django1.8返回json字串和接收post的json字串內容 

如何使用 Docker 組件開發 Django 項目? 

Ubuntu Server 12.04 安裝Nginx+uWSGI+Django環境  

Django+Nginx+uWSGI 部署  

Django實戰教程  

Django Python MySQL Linux 開發環境搭建  

Django 的詳細介紹:請點這裡
Django 的:請點這裡

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.