Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法加载共享库';蟒蛇37';或者它的一个依赖项_C#_.net_Tensorflow_Keras_Python.net - Fatal编程技术网

C# 无法加载共享库';蟒蛇37';或者它的一个依赖项

C# 无法加载共享库';蟒蛇37';或者它的一个依赖项,c#,.net,tensorflow,keras,python.net,C#,.net,Tensorflow,Keras,Python.net,我对dotnet和Keras.NET还很陌生,我试图在一个goorm.io容器上设置它。在安装了先决条件(为Tensorflow后端和pip install numpy添加$HOME/.keras/keras.json),然后添加keras.NET之后,我尝试运行XOR示例代码,但遇到了一个错误 Unhandled exception. System.DllNotFoundException: Unable to load shared library 'python37' or one of

我对dotnet和Keras.NET还很陌生,我试图在一个goorm.io容器上设置它。在安装了先决条件(为Tensorflow后端和pip install numpy添加$HOME/.keras/keras.json),然后添加keras.NET之后,我尝试运行XOR示例代码,但遇到了一个错误

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'python37' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libpython37: cannot open shared object file: No such file or directory
at Python.Runtime.Runtime.Py_IsInitialized()
at Python.Runtime.Runtime.Initialize(Boolean initSigs)
at Python.Runtime.PythonEngine.Initialize(IEnumerable1 args, Boolean setSysArgv, Boolean initSigs) at Python.Runtime.PythonEngine.Initialize(Boolean setSysArgv, Boolean initSigs) at Python.Runtime.PythonEngine.Initialize() at Numpy.np.InstallAndImport(Boolean force) at Numpy.np.<>c.<.cctor>b__599_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue()
at System.Lazy1.get_Value() at Numpy.np.get_self() at Numpy.np.get_float32() at Numpy.DtypeExtensions.GetDtype(Object obj) at Numpy.np.array[T](T[,] object, Dtype dtype, Nullable1 copy, String order, Nullable1 subok, Nullable1 ndmin)
at Proj.Program.Main(String[] args) in /workspace/XOR/Proj/Program.cs:line 14
未处理的异常。System.DllNotFoundException:无法加载共享库“python37”或其依赖项之一。为了帮助诊断加载问题,请考虑设置LD.Debug环境变量:LyPythOn37:无法打开共享对象文件:没有这样的文件或目录
在Python.Runtime.Runtime.Py_初始化()
在Python.Runtime.Runtime.Initialize(布尔initSigs)
在Python.Runtime.PythonEngine.Initialize(IEnumerable1 args,Boolean setSysArgv,Boolean initSigs)在Python.Runtime.PythonEngine.Initialize()在Numpy.np.InstallAndImport(Boolean force)在Numpy.np.c.b_u599_0()在System.Lazy1.ViaFactory(LazyThreadSafetyMode模式)
位于System.Lazy1.CreateValue()的System.Lazy1.ExecutionAndPublication(LazyHelper ExecutionAndPublication,布尔useDefaultConstructor)
在System.Lazy1.get_Value()在Numpy.np.get_self()在Numpy.np.get_float32()在Numpy.DtypeExtensions.GetDtype(Object obj)在Numpy.np.array[T](T[,]Object,Dtype Dtype,Nullable1 copy,String order,Nullable1 subok,Nullable1 ndmin)
在/workspace/XOR/Proj/Program.cs中的Proj.Program.Main(字符串[]args)处:第14行
我不知道如何与python37目录共享。如果有人能给我指明正确的方向,我将不胜感激。顺便说一下,如果有帮助的话,我正在使用Linux

谢谢