How to install mysql-connector for python 3.5.1?
Question: I'm on python 3.5.1 and I am having trouble installing mysql connector:

    
    
    install --allow-external mysql-connector-python-rf mysql-connector-python-rf
    

is not working, neither is the normal pip command for mysql-connector-python-
rf. I am getting the following message:

    
    
    error: option --single-version-externally-managed not recognized
    

Any ideas?


Answer: There is no `mysql-connector` for `python 3.5.1` up till now, but you can use
pymysql to connect mysql to python 3.5.1!

    
    
    import pymysql
    
    conn = pymysql.connect(host='localhost', port=port_no, user='db_user', passwd='password', db='db_name')
    

