安裝subprocess時出現錯誤訊息

    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-6yf_v6uz\subprocess.run\setup.py", line 53, in <module>
        license=open(os.path.join(here, "LICENSE")).read(),
    UnicodeDecodeError: 'cp950' codec can't decode byte 0xc5 in position 35: illegal multibyte sequence
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-6yf_v6uz\subprocess.run\

於windows安裝subprocess時發生如上錯誤訊息,打開setup.py,將該行註解

license=open(os.path.join(here, "LICENSE")).read(),

2 thoughts on “安裝subprocess時出現錯誤訊息

  • 2020-04-09 at 23:35:12
    Permalink

    為什麼我Temp下找不到pip-install-xxxxx的資料夾??

    Reply
    • 2020-07-30 at 08:40:03
      Permalink

      先確認錯誤訊息的內容。

      Reply

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *