Ubuntu install Python django

1. Use the Ubuntu package manager
    sudo apt-get install python-django
  
    And optional installations :
    sudo aptitude install python-imaging python-pythonmagick python-markdown python-textile python-docutils
   

    Install Apache, Mod_Python, MySQL and MySQLdb. MySQLdb is the database bindings for MySQL. 
    sudo apt-get install apache2 libapache2-mod-python
    sudo apt-get install mysql-server python-mysqldb

2. Use pip and PyPi, the Python package manager
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip 


if you want to install django in a virtual environment. There is a bit of a learning curve to these tools, but they help you to get a good development environment.
sudo pip install --upgrade virtualenv 

留言

熱門文章