[Python] FileNotFoundError: Could not find module (or one of its dependencies). Try using the...

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

  1. Stack

    Stack Membro Participativo

    When trying to import an installed package, I am getting the following error in Jupyter Notebook:

    FileNotFoundError: Could not find module
    'c:\users\my\miniconda3\envs\tensorflow\lib\site-packages\thundergbm-0.3.16-py3.8.egg\thundergbm\thundergbm.dll'
    (or one of its dependencies).
    Try using the full path with constructor syntax.


    The package was installed using the command python setup.py install and is recognized as an installed package by Python when running help('modules').

    I have read a bunch of similar previous issues and tested the common advice which is to run this command before importing the package but to no success:

    import os
    os.add_dll_directory(r'c:\users\my\miniconda3\envs\tensorflow\lib\site-packages\thundergbm-0.3.16-py3.8.egg\thundergbm)


    Any ideas what the cause might be and which approaches to take to solve it?

    Continue reading...

Compartilhe esta Página