[Python] Python XlsxWriter module is already installed but ModuleNotFound

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

  1. Stack

    Stack Membro Participativo

    I am still a beginner in Python.
    I use Jupyter Notebook and want to import XlsxWriter, but it doesnt seem to work.

    This is what I do in the Notebook which i usually open through the pycharm terminal:

    import numpy as np
    import pandas as pd

    import sys
    !{sys.executable} -m pip install --user XlsxWriter

    import XlsxWriter


    However i get the following error message:

    Requirement already satisfied: XlsxWriter in c:\users\rober\appdata\local\programs\python\python310\lib\site-packages (3.0.3)
    ---------------------------------------------------------------------------
    ModuleNotFoundError Traceback (most recent call last)
    Input In [8], in <cell line: 6>()
    3 import sys
    4 get_ipython().system('{sys.executable} -m pip install --user XlsxWriter')
    ----> 6 import XlsxWriter

    ModuleNotFoundError: No module named 'XlsxWriter'


    Does anyone have an idea what is the problem here? A simple Script using XlsxWriter in PyCharm works perfectly fine.

    Continue reading...

Compartilhe esta Página