[Python] ModuleNotFound Error right after I globally install a Python package. What am I...

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I'm running Python 3.12.3 on Ubuntu 24.04. I have been trying to install a few different packages to determine timezones from longitude and latitude coordinates, and every time I've tried installing packages the last few days, I simply cannot get python to find/use that package. Below is a screenshot.

    [​IMG]

    To show this in code, here is what I am doing:

    Installing to existing venv 'geocoder'
    installed package geocoder 1.38.1, installed using Python 3.12.3
    These apps are now globally available
    - geocode
    done! ✨ ✨

    python3
    Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import geocoder
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'geocoder'
    >>>


    I would appreciate any pointers to figure out what I am doing wrong.

    Continue reading...

Compartilhe esta Página