pip - Python wordcloud installing was stuck in decode error -
i used pip install wordcloud in cmd stuck in decode error, here error info:
collecting wordcloud using cached wordcloud-1.3.1.tar.gz requirement satisfied: matplotlib in c:\python\python36\lib\site-packages (from wordcloud) requirement satisfied: numpy>=1.6.1 in c:\python\python36\lib\site-packages (from wordcloud) requirement satisfied: pillow in c:\python\python36\lib\site-packages (from wordcloud) requirement satisfied: pytz in c:\python\python36\lib\site-packages (from matplotlib->wordcloud) requirement satisfied: cycler>=0.10 in c:\python\python36\lib\site-packages (from matplotlib->wordcloud) requirement satisfied: six>=1.10 in c:\python\python36\lib\site-packages (from matplotlib->wordcloud) requirement satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in c:\python\python36\lib\site-packages (from matplotlib->wordcloud) requirement satisfied: python-dateutil in c:\python\python36\lib\site-packages (from matplotlib->wordcloud) requirement satisfied: olefile in c:\python\python36\lib\site-packages (from pillow->wordcloud) installing collected packages: wordcloud running setup.py install wordcloud ... error exception: traceback (most recent call last): file "c:\python\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str return s.decode(sys.__stdout__.encoding) unicodedecodeerror: 'utf-8' codec can't decode byte 0xa1 in position 55: invalid start byte during handling of above exception, exception occurred: traceback (most recent call last): file "c:\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) file "c:\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run prefix=options.prefix_path, file "c:\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install **kwargs file "c:\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install spinner=spinner, file "c:\python\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess line = console_to_str(proc.stdout.readline()) file "c:\python\python36\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str return s.decode('utf_8') unicodedecodeerror: 'utf-8' codec can't decode byte 0xa1 in position 55: invalid start byte
problem seems caused decode, please me figure out, thanks!
open file in
c:\python36\lib\site-packages\pip\compat\__init__.py
change 'utf_8' 'cp936' , save, use pip install again.
Comments
Post a Comment