ricklamers / gridstudio

Grid studio is a web-based application for data science with full integration of open source data science frameworks and languages.
GNU Affero General Public License v3.0
8.88k stars 1.5k forks source link

import mysql.connector failed #96

Open JohnnySung opened 5 years ago

JohnnySung commented 5 years ago

I just installed mysql in my mac, I used Python pip command to get it. Since Python2 will be depreciated soon, the website rejected me. So I used Python3 to pip it and executed "import mysql.connector" and no error happened. I tried to used Python2 back to execute "import mysql.connector" it gave me feedback:
"Traceback (most recent call last): File "", line 1, in "

In our beloved "gridstudio", seems Python2 is used, because when I stepped "import mysql.connector", it gave me the similar File "", line 1, in " error!

How to change our gridstudio to Python3?

ricklamers commented 4 years ago

Grid Studio is using Python 3 exclusively. Are you sure you ran python3 -m pip install mysql-connector-python?