Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

[resolved] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte #13

@program-spiritual

Description

@program-spiritual

显示图像是空白,鼠标在上面滚动一下 就会报错

image

报错日志如下:

环境: pipenv pyenv

错误日志

Traceback (most recent call last):
  File "demo4.py", line 103, in <module>
    create_word_cloud(all_word)
  File "demo4.py", line 66, in create_word_cloud
    plt.show()
  File "/Users/huhongyun/PythonProjects/geekTimeDataAnalysisInAction/.venv/lib/python3.6/site-packages/matplotlib/pyplot.py", line 254, in show
    return _show(*args, **kw)
  File "/Users/huhongyun/PythonProjects/geekTimeDataAnalysisInAction/.venv/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 3266, in show
    cls.mainloop()
  File "/Users/huhongyun/PythonProjects/geekTimeDataAnalysisInAction/.venv/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 1039, in mainloop
    managers[0].window.mainloop()
  File "/Users/huhongyun/.pyenv/versions/3.6.7/lib/python3.6/tkinter/__init__.py", line 1283, in mainloop
    self.tk.mainloop(n)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions