วิธีแก้ปัญหาเมื่อ Python Pip install แล้ว Error เกี่ยวกับ : UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 (Windows)

 


สาเหตุน่าจะเกิดจาก เครื่องเรากำหนด Charcode เป็นภาษาถิ่นของเรา, ทำให้ตัว python ที่เข้าใจว่าเราใช้ utf-8 หา charcode ไม่เจอครับ

ต้องเข้าไปติ๊กถูก ให้ใช้ utf-8 สำหรับภาษาอื่นๆด้วย (ตามภาพ)


Error Message : 

error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\RatchanonC1\AppData\Local\Temp\pip-install-cyeu6t8l\django-computedfields_7a91e5882ee64677a9787384491d5744\setup.py", line 4, in <module> long_description = f.read() File "C:\Users\xxxxxxxx\AppData\Local\Programs\Python\Python310\lib\encodings\cp874.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x99 in position 1174: character maps to <undefined> [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

SetUp Theme Monokai On Visual Studio

"zsh: command not found: docker"

คู่มือ Install IIS On Windows Server 2016