Mar-19-2025, 09:05 PM
Look ok,follow this.
So it install this wrong version.
Do this install from Github directly.
# Make C:\code>python -m venv openapi_env # Cd in C:\code>cd openapi_env # Activate C:\code\openapi_env>C:\code\openapi_env\Scripts\activate # Install (openapi_env) C:\code\openapi_env>pip install openapi Collecting openapi .....Problem some guy has make this openapi same name stupid🔨
So it install this wrong version.
Do this install from Github directly.
(openapi_env) C:\code\openapi_env>pip install git+https://github.com/openai/open ai-python.git .... Successfully built openai Installing collected packages: sniffio, pydantic-core, jiter, idna, h11, distro, colorama, certifi, annotated-types, tqdm, pydantic, httpcore, anyio, httpx, ope nai Successfully installed annotated-types-0.7.0 anyio-4.9.0 certifi-2025.1.31 color ama-0.4.6 distro-1.9.0 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 idna-3.10 jiter-0. 9.0 openai-1.66.5 pydantic-2.10.6 pydantic-core-2.27.2 sniffio-1.3.1 tqdm-4.67.1 # Test that it works (openapi_env) C:\code\openapi_env>python Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit ( AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from openai import OpenAI >>>For editor eg VS Code,i start from folder like this(
code .
) then it find virtual environment.(openapi_env) C:\code\openapi_env>code .