Skip to content

ModuleNotFoundError: No module named 'requests' #2

Description

@LeeKiYoung

I am using MacM3 Pro, and I am using zsh and pyenv 3.8.10.

:~$ python -m pip show requests

Name: requests
Version: 2.32.4
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache-2.0
Location: /Users/leekiyoung/.pyenv/versions/3.8.10/lib/python3.8/site-packages
Requires: charset-normalizer, certifi, urllib3, idna
Required-by:

The requests module is properly installed in the pyenv environment on my PC.
However, when using the cli command,

Traceback (most recent call last):

File "/Users/leekiyoung/.local/bin/perplexity", line 7, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

The first line of the ~/.local/bin/perplexity file is
#!/usr/bin/python3
The above environment is being used.
Can I use it without modifying the file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions