Open miracleflame opened 2 years ago
This project is only a python binding for the native iconv library. From what I read, there is a libiconv for windows. Have you made sure that it is installed and that it can be found by the compiler?
The original python 2 version supported “glibc 2, Solaris, or other Unix variants” and I have not made any additional efforts for wider support. Not sure what exactly is needed to build on windows. Any contribution in that regard would be welcome of course.
You are correct, iconv is the library that fails to compile.
I've somehow managed to use GnuWin32 to at least get it work as
os.system("iconv --help")
but it doesn't quite work well... I'll pass.
I got success to build and use python-iconv with python 3.11 and 3.12 (msvc).
iconv.h
into python311\include\
, libiconv.lib
as libs\iconv.lib
, libiconv.dll
into lib\site-packages\
.python-iconv
and apply patch in #8.
Using Python 3.10 and going
pip install python-iconv
failed witherror: microsoft visual c++ 14.0 or greater is required. get it with "microsoft c++ build tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
After installing the default workload for "Desktop development with C++" via Visual Studio Build Tools the result is different after
pip install python-iconv