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

Cannot run python -m venv venv #56

Closed kranfnus closed 7 months ago

kranfnus commented 1 year ago

I installed python v3.10.9 through Anaconda and run a Terminal from Anaconda

I cloned openai-quickstart-python:

$ git clone https://github.com/openai/openai-quickstart-python.git

After a:

$ cd openai-quickstart-python

I tried to create a new virtual environment:

$ python -m venv venv

Here is the error message:

Error: [WinError 2] The system cannot find the file specified: 'C:\Users\...\openai-quickstart-python\venv'

What went wrong?

Harshitdy commented 1 year ago

Hey! @kranfnus have you tried to create the folder manually if not yet then try:

mkdir venv

and then try to create the virtual environment using

python -m venv venv

kranfnus commented 1 year ago

Tried this and it did not work. Finally I used the Windows attrib command line to force access rights...

depo101 commented 1 year ago

@kranfnus hi, if you install anaconda then