简体   繁体   English

IBM Waston - 检索和排名

[英]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.

相关问题 检索并在Python配置文件类型中排名? - Retrieve and Rank in Python-Configuration File Type? Watson检索和排名:Python Bluemix运行时 - Watson Retrieve and Rank: Python Bluemix runtime 发布到Bluemix Retrieve_and_Rank的状态为0,但不起作用 - Post to Bluemix Retrieve_and_Rank gives status 0, but does not work 使用cURL将问题上传到“检索和排名”,在Webtool中可见 - Upload questions to Retrieve and Rank using cURL, visible in webtool 无法使用 python 在 IBM Cloud object 存储中检索存储桶名称 - Cannot retrieve bucket name in IBM Cloud object storage using python 如何从文件中检索名称的等级,然后将 output 内容放入我的打印语句中? - How do I retrieve the rank of the names from a file and then output the stuff into my print statement? 需要从线圈失败日期检索每个系统最近 7 天的线圈活动,以及需要在 Python 中基于系统和 Logdate 添加排名 - Need to retrieve latest 7 days coil activity for each system from coil failed date along with need to add rank based on system and Logdate in Python 排列等级 - Rank of a Permutation 形状必须是 2 级,但它是 1 级 - Shape must have rank 2 but it is rank 1 Tensorflow Shape必须为1级但为2级 - Tensorflow Shape must be rank 1 but is rank 2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM