Django - No module named _sqlite3

前端 未结 9 1656

I have django 1.4 installed on my rhel 5. By default rhel 5 has python 2.4 in it but to use django 1.4 I manually installed python 2.7.3 The development server is running fine b

9条回答
  •  太阳男子
    2021-02-12 13:13

    This is what I did to get it to work.

    I am using pythonbrew(which is using pip) with python 2.7.5 installed.

    I first did what Zubair(above) said and ran this command:

    sudo apt-get install libsqlite3-dev
    

    Then I ran this command:

    pip install pysqlite
    

    This fixed the database problem and I got confirmation of this when I ran:

    python manager.py syncdb
    

提交回复
热议问题