New 3D Slicer Module that Connects to a MySQL DB

Hi all,
I’m creating a new module for 3D Slicer 4.8.1. It will have to connect to MySql database. So, first of all I installed mysql-connetor in ubuntu

pip install mysql-connector

then in my 3D Slicer module I added

import mysql.connector

But when I run 3D Slicer, it tells me

Traceback (most recent call last):
File “”, line 1, in
File “/home/pippo/Git/Project/src/”, line 8, in
import mysql.connector
ImportError: No module named mysql.connector

Can someone help me?



See detailed instructions here: Slicer-Python Packages Use and Install

I was able to get pymsql to work with slicer. It’s pretty straightforward.