[Python] Trying to understand why I get 'ModuleNotFoundError: No module named 'pandas' in...

Discussão em 'Python' iniciado por Stack, Março 6, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to learn how to use VSCode, after installing Jupyter and trying to add pandas. When I installed VScode along with node I got a second version of Python, 3.12.6. Within VSCode I installed Jupyter and trying to follow a tutorial tried importing pandas, but got the 'No Module Found' error.

    From what I've read trying to understand the problme I don't think it's because Jupyter doesn't know which version of Python to use as I've set up a .venv in this Python 3.12.6, the same version that installed pandas. I used 'pip show pandas' to confirm. It's pandas 2.2.3.

    So, do I have to install pandas again within Jupyter? I'm doing it within an .ipynb file which shows '.venv (Python 3.12.6), so as far as I understand I'm using the right kernel.

    Could someone explain what I'm missing?

    Continue reading...

Compartilhe esta Página