บทความ

กำลังแสดงโพสต์จาก มกราคม, 2024

วิธีแก้ปัญหาเมื่อ 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' code...