我已经下载了stockfish,并将文件放在我的google驱动器中,这样就可以在colab中访问它,但是它不允许我执行文件,并且我得到了一个权限拒绝错误。有人知道如何解决这个问题吗
def stockfish(board, depth):
with chess.engine.SimpleEngine.popen_uci('/content/drive/MyDrive/stockfish-3.13.0/stockfish') as sf:
result = sf.analyse(board, chess.engine.Limit(depth=depth))
score = result['score'].white().score()
return score
PermissionError: [Errno 13] Permission denied: '/content/drive/MyDrive/stockfish-3.13.0/stockfish'
在路径末尾再次添加斜杠:
相关问题 更多 >
编程相关推荐