Devin781 2022-09-09 11:56 采纳率: 100%
浏览 57
已结题

windows系统下,在jupyter notebook中用cython一直报错LinkError: command 'link.exe' failed: None

问题遇到的现象和发生背景

@windows系统下,在jupyter notebook中用cython一直报错LinkError: command 'link.exe' failed: None

问题相关代码,请勿粘贴截图

%load_ext Cython

%%cython -a
import random
def average_cy1(int n):
cdef int i
cdef float s = 0
for i in range(n):
s += random.random()
return s / n

运行结果及报错内容

img

LinkError: command 'link.exe' failed: None

请问怎么解决这个问题

img

  • 写回答

3条回答 默认 最新

  • 天天进步2015 2022-09-09 14:06
    关注

    'link.exe' 这个文件没有找到

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 9月24日
  • 已采纳回答 9月16日
  • 创建了问题 9月9日