title: "ImportError: DLL load failed" in PyCharm w/ conda: how to automatically import conda's PATH?
body: <p>I have installed python via conda, created a new environment, installed PyCharm and configured it to use this environment.</p>
  
  <p>When I start a python console in PyCharm, I am greeted with a </p>
  
  <blockquote>
    <p>C:\Users\9973879\AppData\Local\Continuum\miniconda3\envs\foo\lib\site-packages\IPython\core\history.py:226: UserWarning: IPython History requires SQLite, your history will not be saved</p>
  </blockquote>
  
  <p>Indeed if I try to <code>import sqlite3</code>, I get a</p>
  
  <blockquote>
    <p>ImportError: DLL load failed: The specified module could not be found.</p>
  </blockquote>
  
  <p>However <code>Project Interpreters &gt; Interpreter Paths</code> does list <code>C:\Users\9973879\AppData\Local\Continuum\miniconda3\envs\foo\{DLLs, Lib, site-packages}</code>. Also, importing this package from a python interpreter launched from the command line — in that very same virtual environment — succeeds.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It seems the problem comes from the <code>PATH</code> environment variable. When calling <code>conda activate foo</code>, <code>conda</code> adds a bunch of folders to the <code>PATH</code>, containing various libraries (in particular <code>sqlite3.dll</code>).</p>
  
  <p>When pointing to an existing environment (or creating a new one), PyCharm does automatically add folders to the <code>PYTHONPATH</code> as pointed out before, but does not seem to add anything to the <code>PATH</code>.</p>
  
  <p>I tested this assumption by running PyCharm from the command line after calling <code>conda activate foo</code>, and it works. Of course, having to launch PyCharm from a specific conda environment is not great as I am stuck with this specific environment.</p>
  
  <p>How could PyCharm be configured to automatically update the environment as <code>conda activate</code> does? Shouldn't it do it straight out of the box?</p>