簡體   English   中英

解決 Errno 13 權限被拒絕

[英]Resolving Errno 13 Permission denied

我正在嘗試使用stockfish chess引擎通過python-chess進行棋盤評估,但出現權限錯誤。

mac os,python 3.7,Ipython 到 Conda 4.9.2

這是回溯最后一行的結果:

import chess.engine
engine = chess.engine.SimpleEngine.popen_uci("/Applications/Stockfish.app")
...
PermissionError: [Errno 13] Permission denied: '/Applications/Stockfish.app'

我已成功使用 chmod 設置權限,但仍然收到錯誤消息。

請幫助,非常堅持這一點。

首先, Stockfish.app是 Mac 上 stockfish 的桌面應用程序,而不是 Stockfish 引擎。 所以你需要使用引擎。 您可以在此處找到舊引擎( https://www.dropbox.com/sh/75gzfgu7qo94pvh/NlXX-QLGu6 ),但對於最后一個引擎,您需要使用 HomeBrew 安裝它: brew install stockfish 有關詳細信息,請參閱https://stockfishchess.org/download/

其次,在終端 window 中,鍵入chmod +x the_stockfish_engine_path以禁用權限限制。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM