title: ImportError: No module named serial
body: <p>I have a script written in Python 3 with 3.3.5 installed, and I am getting this error from the terminal whenever I try to run it.  I am using a Mac, OSX 10.7.5</p>
  
  <p>I have already installed <code>pyserial</code> (using pip) for python 3. In order to do this, I first installed pip using:</p>
  
  <pre><code>$ curl -O http://python-distribute.org/distribute_setup.py
  $ sudo python3 distribute_setup.py
  $ curl -O https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
  $ sudo python3 get-pip.py
  </code></pre>
  
  <p>I then installed <code>pyserial</code> with:</p>
  
  <pre><code>$sudo pip3 install pyserial
  </code></pre>
  
  <p>I run the script with Python Launcher and I get the error:</p>
  
  <pre><code>ImportError: No module named serial
  </code></pre>
  
  <p>The error is at the line which says</p>
  
  <pre><code>import serial
  </code></pre>
  
  <p>I located <code>pyserial</code> in <code>/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages</code>. I am really stumped and have no clue why I am getting this error.</p>
  
  <p>I tried the following in Terminal:</p>
  
  <pre><code>$ python3
  &gt;&gt;&gt; import serial
  &gt;&gt;&gt; serial
  &lt;module 'serial' from '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/serial/__init__.py'&gt;
  </code></pre>
  
  <p>To me it looks like there isn't an issue with the directory.  Is that a fair assumption, since Python instantly looks through that directory when I try it with the command line, or is it different when I'm running a script?</p>
  
  <p>I'm very new to all of this so any sort of help and patience would be hugely appreciated. </p>
  
  <p>Thanks.</p>
  
  <p>EDIT: For anyone else looking at this having a similar problem, I didn't <em>really</em> fix it, but I worked around it by just running my program with eclipse using the PyDev plugin.  If that's an option for you, worked like a charm for me.</p>