openai / openai-quickstart-python

Python example app from the OpenAI API quickstart tutorial
https://platform.openai.com/docs/quickstart?context=python
MIT License
1.69k stars 1.31k forks source link

Activating venv in Windows #30

Closed deniz-tuncbilek closed 7 months ago

deniz-tuncbilek commented 1 year ago

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

yishairasowsky commented 1 year ago

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

yishairasowsky commented 1 year ago

also i think it is

venv/Scripts/activate

instead of

. venv/bin/activate
theo-armour commented 1 year ago

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

logankilpatrick commented 7 months ago

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