简体   繁体   English

尝试安装Python Package时出现“ iconv.h:无此文件”

[英]“iconv.h: No such file” while trying to install Python Package

I am a Windows user but I wanted to use the iconv Linux command line, used in order to convert file from one encoding to an other. 我是Windows用户,但我想使用iconv Linux命令行,该命令行用于将文件从一种编码转换为另一种编码。 Moreover, I wanted to use this in one of my Python 2.7 program. 此外,我想在我的Python 2.7程序之一中使用它。

So I found this package . 所以我找到了这个包

Using the cmd Command Prompt and after solving the "Unable to find vcvarsall.bat" (VS 2013) issue, I now have an error message saying: 使用cmd命令提示符并解决了"Unable to find vcvarsall.bat" (VS 2013)问题后,现在出现一条错误消息:

iconvmodule.c(1): fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory

Can someone explain to me how to fix this please? 有人可以向我解释如何解决此问题吗?

Maybe you should compile libiconv library first. 也许您应该先编译libiconv库。 iconv.h lives in libiconv . iconv.h居住在libiconv

The guide is here . 指南在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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