如何使用IronPython在C中运行外部Python脚本导入numpy模块

2024-04-19 19:03:03 发布

您现在位置:Python中文网/ 问答频道 /正文

在visualstudio的C#中执行一个通过IronPython导入numpy模块的外部Python脚本时,我得到了一个numpy的module not found错误。你知道吗

试图从我的本地python文件夹复制numpy目录,导致错误无法加载库。你知道吗

import time
import imutils
from imutils.video import VideoStream
from os import listdir, path, makedirs
import cv2
import os
import tkinter as tk
from tkinter.font import Font
from tkinter import *

在C#::-

v.ExecuteFile("D:\\test1.py");

Expected the code to run but throws a module not found error /a library error

Tags: 模块fromimportnumpy脚本ostkinter错误