title: Eclipse/pydev won't import mysql.connector with a project, but imports fine from IDLE
body: <p>I'm attempting to do the mysql tutorial for the python connector.</p>
  
  <p>Using Xubuntu 14.04, python3, mysql 5.5.35, eclipse Luna and pydev 3.6.0. I installed the python.connector via instructions on the mysql website.</p>
  
  <p>When I use python 3 from the command line into the interactive shell, I can do</p>
  
  <pre><code>import mysql.connector
  </code></pre>
  
  <p>just fine. I can then proceed to do things with that import, for example all the following code runs fine:</p>
  
  <pre><code>&gt;&gt;&gt; import mysql.connector
  &gt;&gt;&gt; cnx = mysql.connector.connect(user='root', password='root', host='127.0.0.1',database='testdb')
  &gt;&gt;&gt; cnx.close()
  </code></pre>
  
  <p>In eclipse, I am unable to import it properly, but I still have a red 'squiggly' with <code>unresolved import</code> errors. As such I'm unable to use autocomplete for any of my script. . I've set up my interpreter to use python3 (as well as the python 3.4 option, tried separately).</p>
  
  <p>On the left, I can see mysql under <code>python &gt; System Libs &gt; python3/dist-packages &gt; mysql</code> as part of my project</p>
  
  <p><img src="https://i.stack.imgur.com/W4Uu6.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/5C5gW.png" alt="enter image description here"></p>
  
  <p>My interpreter is set up as such:</p>
  
  <p><img src="https://i.stack.imgur.com/CuYMX.png" alt="enter image description here"></p>
  
  <p>Regardless of what I do, I am unable to get it to import in eclipse. I've tried the answers here to no avail:</p>
  
  <p><a href="https://stackoverflow.com/a/3864323/3665278">https://stackoverflow.com/a/3864323/3665278</a></p>
  
  <p><a href="https://stackoverflow.com/q/2451682/3665278">How do I handle an UnresolvedImport Eclipse (Python)</a></p>
  
  <p><a href="https://stackoverflow.com/q/27897035">https://stackoverflow.com/q/27897035</a></p>