Update new Django and Python 2.7.* with virtualenv on Dreamhost (with passenger)

前端 未结 2 1061
我寻月下人不归
我寻月下人不归 2020-12-07 11:34

Dreamhost is a great host for small project. And it\'s also Django friendly hosting. Everything good except python and Django version is a little bit out of date. Well it\'s

2条回答
  •  盖世英雄少女心
    2020-12-07 12:23

    Currently Dreamhost updated servers to Ubuntu 12.04, and i've got an error:

    Import Error: /_io.so undefined symbol: PyUnicodeUCS2_Decode
    

    after compiling custom python and running "python ez_setup.py"

    The solution was to compile python with --enable-unicode=ucs4 at step 1

    ./configure --enable-shared --prefix=$HOME/Python27 --enable-unicode=ucs4
    

提交回复
热议问题