title: Exception when trying to import python mysql connector on raspberry pi
body: <p>I'm trying to use the python MySQL connector on my Raspberry PI but I'm getting this error as soon as I add the import statement to the script.</p>
  <pre class="lang-py prettyprint-override"><code>import os
  import mysql.connector
  </code></pre>
  <p>The same happens when I try to import only parts of it.</p>
  <pre class="lang-py prettyprint-override"><code>import os
  from mysql.connector import connect, Error
  </code></pre>
  <p>The error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;script.py&quot;, line 2, in &lt;module&gt;
      import mysql.connector
    File &quot;/home/pi/.local/lib/python2.7/site-packages/mysql/connector/__init__.py&quot;, line 53, in &lt;module&gt;
      from .connection import MySQLConnection
    File &quot;/home/pi/.local/lib/python2.7/site-packages/mysql/connector/connection.py&quot;, line 442
      f&quot;This connection is using {tls_version} which is now &quot;
  </code></pre>
  <p>I used PIP to install the connector ...</p>
  <pre class="lang-sh prettyprint-override"><code>pip install mysql-connector-python
  </code></pre>
  <p>... and also already tried to force-reinstall it:</p>
  <pre class="lang-sh prettyprint-override"><code>pip install --upgrade --force-reinstall mysql-connector-python
  </code></pre>