zyddnys / manga-image-translator

Translate manga/image 一键翻译各类图片内文字 https://cotrans.touhou.ai/
https://cotrans.touhou.ai/
GNU General Public License v3.0
5.44k stars 560 forks source link

[Bug]: No module named 'colorama' #769

Open NoteBlockMR opened 1 day ago

NoteBlockMR commented 1 day ago

Issue

Screenshot_2

The pip install -r requirements.txt command says the module is not installed even though I entered it

Test Python Version 3.10.6

Command Line Arguments

python -m manga_translator local -i manga1 --use-gpu --config-file config.json

Console logs

Traceback (most recent call last):
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "D:\AITranslator2\manga-image-translator2\manga_translator\__init__.py", line 1, in <module>
    import colorama
ModuleNotFoundError: No module named 'colorama'
BlaskKilt commented 1 day ago

pip install colorama have you tried it?

BlaskKilt commented 1 day ago

u can try

import colorama

print(colorama.Fore.RED + "Colorama is installed successfully!" + colorama.Style.RESET_ALL)

if u want to know if its installed correctly