openai / openai-quickstart-python

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

cannot install the pip requirements #62

Closed dportabella closed 4 months ago

dportabella commented 1 year ago

I am using the latest ubuntu and pip3 release, and it cannot install the requirements. Any tips?

docker run ubuntu:latest bash
apt update
apt install -y git python3-pip python3 python3.10-venv
pip install -U setuptools
pip install -U pip
python3 --version  # Python 3.10.6
pip3 --version     # pip 23.1.2 

git clone https://github.com/openai/openai-quickstart-python.git
cd openai-quickstart-python
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
unstructured 0.6.8 requires certifi>=2022.12.07, but you have certifi 2021.10.8 which is incompatible.
magicalraccoon commented 1 year ago

Looks you need to update your certifi:

unstructured 0.6.8 requires certifi>=2022.12.07, but you have certifi 2021.10.8 which is incompatible.

python3 -m pip install "certifi~=2022.12.07"

dportabella commented 1 year ago
$ python3 -m pip install "certifi~=2022.12.07"
ERROR: Could not find a version that satisfies the requirement certifi~=2022.12.07 (from versions: none)
ERROR: No matching distribution found for certifi~=2022.12.07
dportabella commented 1 year ago

could you please provide instructions to run this tutorial using a docker machine? (so that everybody has the same set-up)

maverickhubs commented 10 months ago

Hi are you still looking for a docker version?