setuptools-12.0.5 unter Windows installieren
Verfasst: Samstag 31. Januar 2015, 14:59
Ich habe erstmals Python V 2.7.9 32-bit (python-2.7.9.msi) unter Windows 7 installiert und scheitere nun an der Installation des ersten Moduls.
Folgende Schritte habe ich bisher durchgeführt.
1.) Installation von Python nach C:\Python27 => OK
2.) Download von ez_setup.py und Doppelklick => setuptools-12.0.5 wurde heruntergeladen
3.) setuptools entpackt
Da ich keinen Windows Installer für setuptools-12.0.5 gefunden habe, bin ich in der üblichen Weise vorgegangen, wie es viele Anleitungen beschreiben.
cd I:\Install\Sprachen\Python\setuptools-12.0.5
c:\Python27\Python.exe setup.py install
daraufhin habe ich folgende lange Fehlermeldung erhalten:
Traceback (most recent call last):
File "setup.py", line 18, in <module>
exec(init_file.read(), command_ns)
File "<string>", line 11, in <module>
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\__init__.py", li
ne 11, in <module>
from setuptools.extension import Extension
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\extension.py", l
ine 8, in <module>
from .dist import _get_unpatched
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\dist.py", line 1
6, in <module>
from setuptools.depends import Require
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\depends.py", lin
e 6, in <module>
from setuptools import compat
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\compat.py", line
19, in <module>
from SimpleHTTPServer import SimpleHTTPRequestHandler
File "c:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "c:\Python27\lib\SimpleHTTPServer.py", line 214, in SimpleHTTPRequestHand
ler
mimetypes.init() # try to read system mime.types
File "c:\Python27\lib\mimetypes.py", line 351, in init
db.read_windows_registry()
File "c:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
Ich hoffe, es kann mir hier jemand weiterhelfen, denn ich stehe als Python Anfänger gerade vor meiner ersten Hürde.
Walter
Folgende Schritte habe ich bisher durchgeführt.
1.) Installation von Python nach C:\Python27 => OK
2.) Download von ez_setup.py und Doppelklick => setuptools-12.0.5 wurde heruntergeladen
3.) setuptools entpackt
Da ich keinen Windows Installer für setuptools-12.0.5 gefunden habe, bin ich in der üblichen Weise vorgegangen, wie es viele Anleitungen beschreiben.
cd I:\Install\Sprachen\Python\setuptools-12.0.5
c:\Python27\Python.exe setup.py install
daraufhin habe ich folgende lange Fehlermeldung erhalten:
Traceback (most recent call last):
File "setup.py", line 18, in <module>
exec(init_file.read(), command_ns)
File "<string>", line 11, in <module>
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\__init__.py", li
ne 11, in <module>
from setuptools.extension import Extension
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\extension.py", l
ine 8, in <module>
from .dist import _get_unpatched
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\dist.py", line 1
6, in <module>
from setuptools.depends import Require
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\depends.py", lin
e 6, in <module>
from setuptools import compat
File "I:\Install\Sprachen\Python\setuptools-12.0.5\setuptools\compat.py", line
19, in <module>
from SimpleHTTPServer import SimpleHTTPRequestHandler
File "c:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "c:\Python27\lib\SimpleHTTPServer.py", line 214, in SimpleHTTPRequestHand
ler
mimetypes.init() # try to read system mime.types
File "c:\Python27\lib\mimetypes.py", line 351, in init
db.read_windows_registry()
File "c:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
Ich hoffe, es kann mir hier jemand weiterhelfen, denn ich stehe als Python Anfänger gerade vor meiner ersten Hürde.
Walter