O Python não funciona mais - a importação do “site” falha

0

Após o fim de semana, alguns programas no meu computador pararam de funcionar normalmente. O mais importante é o Scrapy e o Python, que eu preciso para uma tarefa específica. Agora, quando eu corro o Scrapy, recebo um erro. Eu tentei desinstalar e reinstalar, mas este problema persiste. Por favor ajude. Estou usando o Windows 7 (que eu tenho que usar).

C:\Users\abc> scrapy -help
ImportError: No module named site

C:\Users\abc>python
ImportError: No module named site

C:\Users\abc>python -v



# installing zipimport hook

import zipimport # builtin
# installed zipimport hook
ImportError: No module named site

# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup[1] _warnings
# cleanup sys
# cleanup __builtin__
# cleanup ints: 6 unfreed ints
# cleanup floats
    
por Hennes 05.07.2011 / 18:04

0 respostas

Tags