[Python] "The kernel appears to have died. It will restart automatically. " Error that...

Discussão em 'Python' iniciado por Stack, Julho 2, 2025.

  1. Stack

    Stack Membro Participativo

    The following is the code block that I tried to execute:

    import mysql.connector

    cnx = mysql.connector.connect(
    host="127.0.0.1",
    port=3306,
    user="root",
    password="root")


    But when I executed it showed: "The kernel appears to have died. It will restart automatically."

    Then I tried to execute the following to solve the error which I saw in the https://www.youtube.com/watch?v=euPqzxPv6f0 :

    import os
    os.environ['KMP_DUPLICATE_LIB_OK']='True'


    But the error remained the same...

    Then I tried the following solution I saw in https://www.youtube.com/watch?v=RhpkTBvb-WU :

    pip install -U numpy


    But it didn't work.

    Continue reading...

Compartilhe esta Página