python - AttributeError: 'str' object has no attribute 'decode' -


i going install zeromq library in pc using pip package installer. use https://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/basics.html#installation reference. after executing follwing command:

pip install pyzmq-static 

i error:

c:\users\myname>pip install pyzmq-static using pip version 7.0.1, version 7.0.3 available. should consider upgrading via 'pip install --upgrade pip' command. collecting pyzmq-static   using cached pyzmq-static-2.2.tar.gz     complete output 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 error code 1 in c:\users\myname\ appdata\local\temp\pip-build-m8zyvx48\pyzmq-static 

my python version 3.5 , use windows 8.0 os.

update

i found referenced article has used python 2.x , using python 3.5.

why using pyzmq-static ? according this reference pyzmq-static obsolete, latest package uploaded on 11-09-2012 , maybe not developed python 3.x .

you should instead try using pyzmq (as indicated pypi page pyzmq-static) .


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -