title: Python3.5 Refuse to Work with MySQL Connector
body: <p>I've read a few questions on here that people are having the same situation as me but no matter what method I tried, it just wouldn't work!</p>
  
  <p>According to MySQL documentation, MySQL-connector-python-2.x.x.x should work with Python 3+.  I've downloaded the RPM package and installed it inside my virtualenv.  However, upon importing the library, I get the error, "No module named MySQL".</p>
  
  <p>Checking to see if I've installed the package:</p>
  
  <pre><code>(virtual)[centos ~]$ rpm -ql mysql-connector-python-2.1.3-1.el6.x86_64.rpm
  package mysql-connector-python-2.1.3-1.el6.x86_64.rpm is not installed
  </code></pre>
  
  <p>Attempting to install the package:</p>
  
  <pre><code>(virtual)[centos ~]$ sudo rpm -i ~/Documents/python/mysql-connector-python-2.1.3-1.el6.x86_64.rpm 
  [sudo] password for &lt;username&gt;: 
  warning: /home/&lt;username&gt;/Documents/python/mysql-connector-python-2.1.3-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
      package mysql-connector-python-2.1.3-1.el6.x86_64 is already installed
  </code></pre>
  
  <p>This works on Python2.6:</p>
  
  <pre><code>[centos ~]$ python
  Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) 
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import MySQLdb
  &gt;&gt;&gt; import mysql.connector
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Doesn't on Python3.5:</p>
  
  <pre><code>[centos ~]$ python3.5
  Python 3.5.1 (default, Jan 13 2016, 17:43:34) 
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import mysql.connector
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'mysql'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Verified the package through MySQL documentation:</p>
  
  <pre><code>(virtual)[centos]$ python
  Python 3.5.1 (default, Jan 13 2016, 17:43:34) 
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; 
  &gt;&gt;&gt; from distutils.sysconfig import get_python_lib
  &gt;&gt;&gt; print (get_python_lib ())
  /home/&lt;username&gt;/Documents/redhat-server/python_project/virtual/lib/python3.5/site-packages
  &gt;&gt;&gt; 
  &gt;&gt;&gt; import mysql.connector
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'mysql'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Making sure that python3.5 is in the same directory as MySQL.connector</p>
  
  <pre><code>(virtual)[centos]$ which python3.5
  ~/Documents/redhat-server/python_project/virtual/bin/python3.5
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>(virtual)[centos]$ pip install mysql-connector-python
  Collecting mysql-connector-python
    Could not find a version that satisfies the requirement mysql-connector-python (from versions: )
  No matching distribution found for mysql-connector-python
  (virtual)[centos]$
  </code></pre>
  
  <p>What am I doing wrong?</p>