title: How to fix 'ImportError: No module named openpyxl'?
body: <p>I am using Python 2.7 and am trying to run a program with openpyxl to work with xlsx files.</p>
  
  <p>In the first line of code:</p>
  
  <pre><code>from openpyxl import Workbook
  </code></pre>
  
  <p>I get the following error when I run the program from the CMD:
  <code>ImportError: No module named openpyxl</code></p>
  
  <p>I used pip to install version 2.6.0, and if I try to install it again through pip it just says I have the latest version.</p>
  
  <p>Unlike any other question like this that I found here, I am using an IDE called PyCharm which has an option of running the program I am currently editing inside PyCharm, and PyCharm actually recognizes openpyxl and runs great, so why won't it work in the CMD?</p>