簡體   English   中英

System.IO.FileNotFoundException:'在語言的搜索路徑:中找不到文件'Test.py'。

[英]System.IO.FileNotFoundException: 'File 'Test.py' not found in language's search path: .'

每當我運行此腳本時,都會出現以下錯誤:

System.IO.FileNotFoundException:'在語言的搜索路徑:中找不到文件'Test.py'。

var ipy = Python.CreateRuntime();
dynamic test = ipy.UseFile("Test.py");
test.Simple();//Simple is a method in the python script

您應該轉到Test.py屬性窗口,然后將“ 復制到輸出目錄 ”更改為“ 始終復制 ”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM