파이썬 프로그램을 실행하면이 오류가 발생하지만 거의 모든 것을 시도했지만 아무런 효과가 없습니다. 코드]OSError : [Errno 2] _execute_child에있는 1024 줄의 하위 파일이 없습니다. child_exception을 내 보냅니다.
def run_p300speller(directory):
print("Starting benchmark, this will take some minutes...")
subprocess.call(["./P300Speller", directory])
오류 (https://github.com/OpenANN/OpenANN/blob/master/benchmarks/p300speller/benchmark.py). 어떤 제안? File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 168, in call return Popen(*popenargs, **kwargs).wait() File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
오류를 생성하는 데 사용하는 코드를 표시하십시오. –
./P300Speller 또는 디렉토리가 존재하지 않습니다. – abccd
디렉토리를 따옴표'' "'로 묶어야한다고 가정합니까? 예를 들어'python benchmark.py/Users/myAccount/Desktop/P300Speller "다운로드 실행 – wahtdbogh