[英]IBM Waston - Retrieve and Rank
I'm following the retrieve and rank tutorial and everything is good until the train.py script - I get an error message below:我正在关注检索和排名教程,一切都很好,直到 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
Any ideas?有任何想法吗?
@peter-wood answered the question in the comments. @peter-wood 在评论中回答了这个问题。
In this case, the unfriendly error message:在这种情况下,不友好的错误消息:
WindowsError: [Error 2] The system cannot find the file specified
was caused by curl
not being on the PATH.是由curl
不在 PATH 上引起的。 train.py
expects the curl
command to be available and on the PATH. train.py
期望curl
命令可用且位于 PATH 上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.