openai/openai-quickstart-python

Activating venv in Windows

deniz-tuncbilek opened this issue · 4 comments

Can the readme mention that the file path is venv/Scripts/activate, not venv/bin/activate in Windows?

I agree that this is an issue that should be addressed.

also i think it is

venv/Scripts/activate

instead of

. venv/bin/activate

On Win11, using a GIT bash terminal, with Python already installed and the https://github.com/openai/openai-quickstart-python cloned, this script worked:

$ python -m pip install --upgrade pip
$ pip install openai
$ pip install flask
$ pip install dot-env
$ python -m venv venv
$ venv/Scripts/activate
$ pip install -r requirements.txt
$ flask run

It would be good to update the readme here: https://github.com/openai/openai-quickstart-python

Yes, I will update this to be more clear for windows users.