danhper / python-i18n

Easy to use i18n library for Python
https://pypi.python.org/pypi/python-i18n
MIT License
228 stars 45 forks source link

[BUG] Requirement package pyyaml won't be installed. #19

Closed Evyde closed 4 years ago

Evyde commented 4 years ago

I installed it via pip install python-i18n, and it shows installed successfully. But I can't use yaml file and I soon found that the requirement package pyyaml wasn't installed automatically. I tested it on macOS 10.15.6 and Windows 10 2004. They both showed that problem.

danhper commented 4 years ago

Hi! Yaml is optional so this is the desired behavior. It is documented in the README: https://github.com/danhper/python-i18n#installation

Evyde commented 4 years ago

Sorry. I checked README even the source code many times but I still not found a tips to install it until I checked the requirements.txt. SoI think users should be explicitly reminded to install pyyaml.

danhper commented 4 years ago

The users do not need to install pyyaml themselves. The README explicitly says:

If you want to use YAML to store your translations, use pip install python-i18n[YAML]

which installs pyyaml too.