2

我正在关注检索和排名教程,在 train.py 脚本之前一切都很好 - 我在下面收到一条错误消息:

Generating training data...
Traceback (most recent call last):
  File "./train.py", line 83, in <module>
    process = subprocess.Popen(shlex.split(curl_cmd), stdout=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

有任何想法吗?

4

1 回答 1

1

@peter-wood 在评论中回答了这个问题。

在这种情况下,不友好的错误消息:

WindowsError: [Error 2] The system cannot find the file specified

是由于curl不在 PATH 上造成的。train.py期望该curl命令可用并且在 PATH 上。

于 2016-05-18T22:09:13.563 回答