Seite 1 von 1

Problem bei Installation von PyCPUID mit pip

Verfasst: Mittwoch 7. September 2016, 17:25
von Gondii
Kann mir Jemand sagen, wie ich dieses Problem löse?

Code: Alles auswählen

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. Alle Rechte vorbehalten.

C:\>pip install PyCPUID
Collecting PyCPUID
  Downloading PyCPUID-0.4.zip (70kB)
    100% |################################| 71kB 1.2MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Gondii\AppData\Local\Temp\pip-build-ll1bgdqt\PyCPUID\setup.py", line 20, in <module>
        requirements = RequirementsParser()
      File "C:\Users\Gondii\AppData\Local\Temp\pip-build-ll1bgdqt\PyCPUID\requirements.py", line 338, in __init__
        self.data[source] = _read_requirements_file(f)
      File "C:\Users\Gondii\AppData\Local\Temp\pip-build-ll1bgdqt\PyCPUID\requirements.py", line 237, in _read_requirements_file
        components = _split_package(line)
      File "C:\Users\Gondii\AppData\Local\Temp\pip-build-ll1bgdqt\PyCPUID\requirements.py", line 148, in _split_package
        if components[-1]:
    TypeError: 'map' object is not subscriptable
Ist das ein Problem dieses Moduls, oder mache ich einen Fehler?

Re: Problem bei Installation von PyCPUID mit pip

Verfasst: Mittwoch 7. September 2016, 18:06
von pillmuncher
Das Paket ist für Python 2.5/6/7, nicht für Python 3.x. Also entweder Python 2.7 installieren und damit arbeiten, oder die Entwickler von PyCPUID so lange nerven, bis sie es für Python 3.x anpassen, oder das Anpassen selber vornehmen, wenn es nicht anders geht und das Paket unbedingt gebraucht wird.

Re: Problem bei Installation von PyCPUID mit pip

Verfasst: Mittwoch 7. September 2016, 18:57
von Sirius3
Es gibt genug Alternativen, die nicht seit 5 Jahren nicht mehr gepflegt werden und auch mit Python3 arbeiten: py-cpuinfo oder cpuid.

Re: Problem bei Installation von PyCPUID mit pip

Verfasst: Mittwoch 7. September 2016, 22:03
von Gondii
Danke für die Tipps / Links