Sugiro instalar o python2.7 (o interpretador e a biblioteca):
sudo apt-get install --reinstall libpython2.7 python2.7
Para saber qual (is) pacote (s) fornece libpython2.7.so.1.0
, usei este consulta .
Eu estou tentando aprender desenvolvimento de aplicações web python usando o Ubuntu 12.04. Eu instalei o apache2 e habilitei o mod_wsgi usando o comando sudo a2enmod wsgi
. Agora, quando tento reiniciar o apache2, ele mostra o erro
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/wsgi.load: Cannot load /usr/lib/apache2/modules/mod_wsgi.so-2.7 into server: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
Eu verifiquei a localização usr/lib/apache2/modules/mod_wsgi.so-2.7
e este arquivo está realmente presente lá. Eu sou muito novo no desenvolvimento de python. Por favor ajude.
ATUALIZAÇÃO: Estou atualizando minha pergunta para incluir o susggestion de Sylvain Pineau. Eles Python 2.7 já está instalado. Quando eu executo o comando dado por Sylvain Pineau eu tenho
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython2.7 is already the newest version.
libpython2.7 set to manually installed.
python2.7 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Update: Eu reinstalei o python 2.7. estava quebrado. Obrigado Sylvain
Sugiro instalar o python2.7 (o interpretador e a biblioteca):
sudo apt-get install --reinstall libpython2.7 python2.7
Para saber qual (is) pacote (s) fornece libpython2.7.so.1.0
, usei este consulta .