2
我正在關注的檢索和進階教程,一切都很好,直到train.py腳本 - 我得到下面的錯誤消息:IBM華生 - 檢索和排名
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
任何想法?
是否有任何鏈接指向您正在討論的內容,即教程或'train.py'?從錯誤消息中,您可能沒有在路徑上安裝[**'cURL' **](https://curl.haxx.se/download.html)。 –
在[本頁](https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/retrieve-rank/get_start.shtml)上說它需要一個Bluemix帳戶,cURL和Python。它會告訴你安裝哪個版本的cURL以及從哪裏獲取它。 –
謝謝彼得。我創建了一個Bluemix帳戶並按照教程。還安裝了cURL和Python(第2版,根據需要運行train.py。只有當我運行train.py時出現了這個錯誤。 –