简体   繁体   中英

CommandError: Can't find xgettext. django

I am making an app for my website with django and i need to ad persian language to my project. But when I tried to run following command

django-admin.py makemessages

and i get this error

CommandError: Can't find xgettext. Make sure you have GNU gettext tools 0.15 or

newer installed.

i have installed python-gettext with pip and installed GetText for Windows and gettext.tools with nuget

i saw some guys with problems similar to mine like this but they're solutions didn't help me what should i do? (i am using windows 7 64 bit and i am really noob in django )

Install latest gettext binaries for Windows downloadable here . Current version is 0.19.8.1.

Shared version should be sufficient. After installation make sure gettext path was added to system paths; C:\\Program Files (x86)\\gettext-iconv or C:\\Program Files (x86)\\gettext-iconv , depending on version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM