Skip to content

ModuleNotFoundError: No module named 'chardet' #1

@hms5232

Description

@hms5232

使用環境:

  • OS:Windows WSL2 Ubuntu 20.04
  • Python 3.8

因為還有其他專案開發,因此我是使用虛擬環境管理工具 poetrypipenv 安裝相依套件的。
用剛剛提及的工具來安裝 requirements.txt 裡相依套件後,執行 console 版本都會出現 ModuleNotFoundError: No module named 'chardet' 錯誤。另外安裝(pip3 install chardet)錯誤中提及的套件後就可以正常運作。

是否是 requirements.txt 應該加入 chardet 這個套件呢?

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