title: Could not load python310.dll while setup Python.Included for Numpy.NET
body: <p>I'm trying to use <a href="https://github.com/SciSharp/Numpy.NET" rel="nofollow noreferrer">Numpy.NET</a> and <a href="https://github.com/henon/Python.Included" rel="nofollow noreferrer">Python.Included</a> in my very first C# application. I'm developing on Ubuntu 20.4.</p>
  <p>Here is my <code>Program.cs</code>:</p>
  <pre><code>using System
  using Numpy;
  using Python.Included;
  using Python.Runtime;
  
  namespace CSharpApp
  {
      class Program
      {
          public static void Main(string[] args)
          {
              Installer.SetupPython().Wait();
              Installer.InstallWheel(typeof(np).Assembly, &quot;numpy-1.16.3-cp37-cp37m-win_amd64.whl&quot;).Wait();
              PythonEngine.Initialize();
              var npp = Py.Import(&quot;numpy&quot;);
          }
      }
  }
  </code></pre>
  <p>This is the content of <code>csproj</code> file:</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;net6.0&lt;/TargetFramework&gt;
      &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;
      &lt;Nullable&gt;enable&lt;/Nullable&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Numpy&quot; Version=&quot;3.7.1.28&quot; /&gt;
      &lt;PackageReference Include=&quot;Python.Included&quot; Version=&quot;3.10.0-preview1&quot; /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  <p>When I execute <code>dotnet run</code>, I'm getting the error:</p>
  <pre><code>Unhandled exception. System.TypeInitializationException: The type initializer for 'Delegates' threw an exception.
       ---&gt; System.DllNotFoundException: Could not load python310.dll with flags RTLD_NOW | RTLD_GLOBAL: python310.dll: cannot open shared object file: No such file or directory
         at Python.Runtime.Platform.PosixLoader.Load(String dllToLoad)
         at Python.Runtime.Runtime.Delegates.GetUnmanagedDll(String libraryName)
         at Python.Runtime.Runtime.Delegates..cctor()
         --- End of inner exception stack trace ---
         at Python.Runtime.Runtime.Delegates.get_Py_IsInitialized()
         at Python.Runtime.Runtime.Py_IsInitialized()
         at Python.Runtime.Runtime.&lt;&gt;c.&lt;Initialize&gt;b__26_0()
         at Python.Runtime.Runtime.TryUsingDll[T](Func`1 op)
         at Python.Runtime.Runtime.Initialize(Boolean initSigs)
         at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
         at Python.Runtime.PythonEngine.Initialize(Boolean setSysArgv, Boolean initSigs)
         at Python.Runtime.PythonEngine.Initialize()
         at CSharpApp.Program.Main(String[] args) in /home/ab/c#apps/CSharpApp/Program.cs:line 20
  </code></pre>
  <p>It seems trying to load python310.dll (python 3.1?). My machine has python 3.7 and 3.8 installed. Is it the reason?</p>