Skip to content

ModuleNotFoundError: No module named 'openai' even though installed #192

Description

@ethantsliu

Screenshot 2023-01-23 at 12 52 32 AM

Hello, I created a new python=3.9 conda environment, and installed openai with pip. However, I found that I am unable to import it. Would anyone be willing to advise? Many thanks!

Activity

  1. logankilpatrick commented on Jan 23, 2023

    @logankilpatrick
    Contributor

    Hey! If you created a conda environment, you might need to also install the package with conda. Alternatively, you can create a new python virtual env by using the following commands :

    python3 -m venv env
    
    source env/bin/activate
    
    pip3 install -r requirements.txt
    

    [Note: python3 and pip3 assume MacOS as the operating system]

  2. logankilpatrick commented on Jan 23, 2023

    @logankilpatrick
    Contributor

    I am going to close this for now, but please let us know if you are still having issues after this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions