Answer the question
In order to leave comments, you need to log in
subprocess module error - The specified file cannot be found - how to solve?
Hello. I've been hacking pystockfish, when I try to run I get an error
File "C:\Py\chess.py", line 7, in <module>
deep = Engine(depth=20)
File "C:\Program Files\Python36\lib\site-packages\pystockfish.py", line 128, in __init__
stdout=subprocess.PIPE, )
File "C:\Program Files\Python36\lib\subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "C:\Program Files\Python36\lib\subprocess.py", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
from pystockfish import *
deep = Engine(depth=20)
deep.setposition(['e2e4'])
deep.bestmove()
Answer the question
In order to leave comments, you need to log in
First, see if the desired file exists at the specified path.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question