简体   繁体   中英

Impossible to install gettext for windows 10

I have followed all the steps shared in all stackoverflow and other questions out there to install gettext for windows (10), but still, I get the error: "Can't find msguniq, make sure you have gettext tools installed" when using internationalization in django. I have tried to download the files directly and added them to the PATH, and even an installer that had already compiled everything and added to the path automatically, but it still doesn't work, and I don't know what else to do... Help please!

Thank you for your time.

Not sure what problem you face but below command worked for me

pip install python-gettext

在此处输入图片说明

In windows you just need to download :

gettext-tools-xx.zip gettext-runtime-xx.zip from here: enter link description here

and then you need to unzip them and copy all in bin folder of both files into C:\\Program Files\\gettext-utils\\bin and then you need to go to control panel-> system -> advanced -> environment variables and add this path:C:\\Program Files\\gettext-utils\\bin to path variables. Note:

xx is the version you want to download if you download version 18 you will get an error that some dll file is missing, I suggest to download version 17 this folder: gettext-utils\\bin does not exist and you need to create it restart your pc before you use gettext

I had the same problem. I tried various solutions to no avail. Finally, I downloaded the binaries from https://mlocati.github.io/articles/gettext-iconv-windows.html and it worked.

try to download "gettext-iconv-windows" manually on your system, from the following URL :

https://mlocati.github.io/articles/gettext-iconv-windows.html

after you download it and install it , close and reopen your CMD , and then try to use your command again .

i hope this helpful

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