Skip to content

pip install openai==0.27.2 is not working #355

@rohit901

Description

@rohit901

Describe the bug

I'm getting this error when trying to install latest version of openai python pip package.

ERROR: Ignored the following versions that require a different python version: 0.11.0 Requires-Python >=3.7.1; 0.11.1 Requires-Python >=3.7.1; 0.11.2 Requires-Python >=3.7.1; 0.11.3 Requires-Python >=3.7.1; 0.11.4 Requires-Python >=3.7.1; 0.11.5 Requires-Python >=3.7.1; 0.11.6 Requires-Python >=3.7.1; 0.12.0 Requires-Python >=3.7.1; 0.13.0 Requires-Python >=3.7.1; 0.14.0 Requires-Python >=3.7.1; 0.15.0 Requires-Python >=3.7.1; 0.16.0 Requires-Python >=3.7.1; 0.18.0 Requires-Python >=3.7.1; 0.18.1 Requires-Python >=3.7.1; 0.19.0 Requires-Python >=3.7.1; 0.20.0 Requires-Python >=3.7.1; 0.22.0 Requires-Python >=3.7.1; 0.22.1 Requires-Python >=3.7.1; 0.23.0 Requires-Python >=3.7.1; 0.23.1 Requires-Python >=3.7.1; 0.24.0 Requires-Python >=3.7.1; 0.25.0 Requires-Python >=3.7.1; 0.26.0 Requires-Python >=3.7.1; 0.26.1 Requires-Python >=3.7.1; 0.26.2 Requires-Python >=3.7.1; 0.26.3 Requires-Python >=3.7.1; 0.26.4 Requires-Python >=3.7.1; 0.26.5 Requires-Python >=3.7.1; 0.27.0 Requires-Python >=3.7.1; 0.27.1 Requires-Python >=3.7.1; 0.27.2 Requires-Python >=3.7.1
ERROR: Could not find a version that satisfies the requirement openai==0.27.2 (from versions: 0.0.2, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.4.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5)
ERROR: No matching distribution found for openai==0.27.2

I'm on conda environment with python 3.10.10.

pip install openai seems to install older version of 0.8.0 on my system and not the latest version, my pip is updated.

Collecting openai
  Using cached openai-0.10.5.tar.gz (157 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: requests>=2.20 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from openai) (2.28.1)
Requirement already satisfied: tqdm in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from openai) (4.64.1)
  Using cached openai-0.10.4.tar.gz (157 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.10.3.tar.gz (157 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.10.2.tar.gz (156 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.10.1.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.10.0.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.9.4.tar.gz (156 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.9.3.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.9.2.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.9.1.tar.gz (156 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.9.0.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
  Using cached openai-0.8.0-py3-none-any.whl
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests>=2.20->openai) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests>=2.20->openai) (2022.9.24)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests>=2.20->openai) (3.4)
Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests>=2.20->openai) (2.1.1)
Installing collected packages: openai
Successfully installed openai-0.8.0

To Reproduce

pip install openai==0.27.2 on M1 Macbook

Code snippets

No response

OS

macOS

Python version

3.10.10

Library version

0.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions