title: LNK1104 cannot open file 'python39_d.lib'
body: <pre><code>#include &quot;C:\Users\user\appdata\local\programs\python\Python39\include\Python.h&quot;
  
  int main()
  {
      PyObject* pInt;
  
      Py_Initialize();
  
      PyRun_SimpleString(&quot;print('Hello World from Embedded Python!!!')&quot;);
  
      Py_Finalize();
  }
  </code></pre>
  <p>I've tried to fix this error, read both <a href="https://stackoverflow.com/questions/61995649/link-fatal-error-lnk1104-cannot-open-file-python37-d-lib">this</a> and <a href="https://stackoverflow.com/questions/36419747/link-fatal-error-lnk1104-cannot-open-file-python27-lib">this</a>, but I'm still getting the same error. Also when I do <code>#include &lt;Python.h&gt;</code> instead of <code>&quot;C:\Users\user\appdata\local\programs\python\Python39\include\Python.h&quot;</code> I get this error: <code>cannot open source file &quot;Python.h&quot;</code></p>