Ich werde ZeroMQ-Bibliothek in meinem PC installieren mit Pip-Paket-Installer. Ich verwende https://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/basics.html#installation als meine Referenz. follwing Befehl nach Ausführung:AttributeError: 'str' Objekt hat kein Attribut 'decode'
pip install pyzmq-static
ich diesen Fehler:
C:\Users\MyName>pip install pyzmq-static
You are using pip version 7.0.1, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyzmq-static
Using cached pyzmq-static-2.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\MyName\AppData\Local\Temp\pip-build-m8zyvx48\pyzmq-static\
setup.py", line 6, in <module>
long_description = open(os.path.join(os.path.dirname(__file__), 'README.
rst')
AttributeError: 'str' object has no attribute 'decode'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\MyName\
AppData\Local\Temp\pip-build-m8zyvx48\pyzmq-static
Meine Python-Version ist 3.5 und ich verwende Windows 8.0 OS.
aktualisieren
fand ich, dass meine angegebenen Artikel Python 2.x verwendet hat, und ich bin mit Python 3.5.
Verwenden Sie Python 3? Scheint 'str.decode' existiert in Python 2, aber nicht in Python 3. –
@tobias_k, ja ich benutze python35. Ich werde meinen Beitrag aktualisieren. –
ist dieses Modul für die Python 3-Version verfügbar – The6thSense