• windows10
  • python 3.5.2
  • 已安装Visual Studio 14.0

在安装nltk的时候遇到如下报错:

LINK : fatal error LNK1158: 无法运行“rc.exe”
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe’ failed with exit status 1158

完整报错截图:

python3 安装nltk 遇到 LINK : fatal error LNK1158: 无法运行“rc.exe”
python3 安装nltk 遇到 LINK : fatal error LNK1158: 无法运行“rc.exe”

后来在这里找到解决方案https://github.com/iMchxx/Blog/issues/27主要步骤如下图:

python3 安装nltk 遇到 LINK : fatal error LNK1158: 无法运行“rc.exe”

将rc.exe和rcdll.dll这两个文件移动到指定目录就可以了

亲测可行。

相关文章:

  • 2021-08-11
  • 2021-11-12
  • 2021-05-22
  • 2021-09-23
  • 2021-07-30
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-12-07
  • 2021-10-02
相关资源
相似解决方案