title: Error installing minted package in MiKTeX
body: <p>I need to highlight some code on a LaTeX document using <code>minted</code> but I'm getting the following error when trying to run minted package on tex file:</p>
  
  <pre><code>runsystem(for ^%i in (pygmentize.exe pygmentize.bat pygmentize.cmd) do set &gt; Ma
  sterThesis_CamiloCruz.aex &lt;nul: /p x=^%~$PATH:i&gt;&gt; MasterThesis_CamiloCruz.aex).
  ..executed.
  
  ! Emergency stop.
  &lt;read 3&gt; 
  
  l.44 \begin{document}
                       ^^M
  *** (cannot \read from terminal in nonstop modes)
  </code></pre>
  
  <p>I'm assuming the error has to be with minted package installation because when I comment the lines it successfully compiles:</p>
  
  <pre><code>\usepackage[cache=false]{minted}
      \usepackage{mdframed}
      \surroundwithmdframed{minted}
  </code></pre>
  
  <p>I already installed and updated all the packages from MikTeX, checked the proposed solutions from <a href="https://tex.stackexchange.com/questions/108661/how-to-use-minted-under-miktex-and-windows-7">https://tex.stackexchange.com/questions/108661/how-to-use-minted-under-miktex-and-windows-7</a> and <a href="https://tex.stackexchange.com/questions/23458/how-to-install-syntax-highlight-package-minted-on-windows-7">https://tex.stackexchange.com/questions/23458/how-to-install-syntax-highlight-package-minted-on-windows-7</a></p>
  
  <p>I have already tried to use Python 2.7 installation with no results. </p>
  
  <p>I also have installed Anaconda3 and edited the PATH system variable with <code>C:\Users\USER\Anaconda3</code> for Python 3.6 and  <code>C:\Users\USER\Anaconda3\Scripts</code> for <code>pygmentize</code> (checked with CMD <code>pygmentize -h</code>).</p>
  
  <p>I really don't know how to fix this problem since it was working fine before I reinstalled Windows OS. Any idea?</p>
  
  <p>The latex content can be found here: <a href="https://pastebin.com/NPMq80Pm" rel="nofollow noreferrer">https://pastebin.com/NPMq80Pm</a>
  and the error log here: <a href="https://pastebin.com/raw/VRpGNiKY" rel="nofollow noreferrer">https://pastebin.com/raw/VRpGNiKY</a></p>
  
  <p>NOTE: I'm running TeXstudio 2.12.6, Python 3.6.1 :: Anaconda 4.4.0 (64-bit) over Windows 10 (x64)</p>