2011-01-16 13 views
1

ich die Python 2.7.1 unter Windows Vista nur Installer von official site mit installiert, und solche Fehler, wenn python.exe laufenImport: kann nicht Namen importieren Aliase

C:\Python27>python.exe 
Traceback (most recent call last): 
    File "C:\Python27\Lib\site.py", line 553, in <module> 
    main() 
    File "C:\Python27\Lib\site.py", line 542, in main 
    aliasmbcs() 
    File "C:\Python27\Lib\site.py", line 467, in aliasmbcs 
    import locale, codecs 
    File "C:\Python27\Lib\locale.py", line 15, in <module> 
    import encodings 
    File "C:\Python27\Lib\encodings\__init__.py", line 32, in <module> 
    from encodings import aliases 
ImportError: cannot import name aliases 

Mit Python 3.1.3, auch gerade installiert

Fatal Python error: Py_Initialize: can't initialize sys standard streams 
Traceback (most recent call last): 
    File "C:\Python31\lib\encodings\__init__.py", line 32, in <module> 
ImportError: cannot import name aliases 

This application has requested the Runtime to terminate it in an unusual way. 
Please contact the application's support team for more information. 

Was ist los? Sollte ich PYTHONPATH oder so etwas konfigurieren? Wenn ja, welche Werte sollte es haben?

+0

Haben Sie "für alle Benutzer" installiert? Haben Sie einen HP-Computer mit einem Standard-Python in PATH? – TryPyPy

+0

Ja, für alle Benutzer installiert. Wird als Administrator ausgeführt. Es gibt kein Python in% PATH%. Aber ich habe es versucht und denselben Fehler gemacht. – alex2k8

Antwort

3

Der einzige Hinweis I verweist auf ein Virus Problem finden konnten:

beginnt hier: http://mail.python.org/pipermail/tutor/2009-January/066730.html Geht durch: http://mail.python.org/pipermail/tutor/2009-January/066739.html und endet: http://mail.python.org/pipermail/tutor/2009-January/066750.html

Wenn Ihr \Lib\encodings\aliases.py fehlt und Sie können keine Datei mit erstellen diesen Namen dort, suchen Sie nach dem Trojaner.

+0

Wow, es scheint so zu sein. – alex2k8

+0

Ja, es war ein Virus. TY! – alex2k8

+0

Haha, urkomisch: "Ich hatte einen Trojaner auf meinem System, der alle Dateien versteckte, deren Namen mit 'ali' anfingen." – masterxilo

Verwandte Themen