python does not import module after pip install

Viewed 17

can anyone help me figure this one out ?? pip installs the module but python does not find the module after pip install

user@debian:~$ pip install google
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: google in ./.local/lib/python3.10/site-packages (3.0.0)

user@debian:~$ python3.10 -m site
sys.path = [
    '/home/user',
    '/usr/local/lib/python310.zip',
    '/usr/local/lib/python3.10',
    '/usr/local/lib/python3.10/lib-dynload',
    '/home/user/.local/lib/python3.10/site-packages',
    '/usr/local/lib/python3.10/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.10/site-packages' (exists)
ENABLE_USER_SITE: True



user@debian:~$ python3.10 
Python 3.10.0 (default, Sep 11 2022, 13:22:26) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import google
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google'
>>> 
0 Answers
Related