本文主要是介绍pip3 fails to install dependencies of openai-quickstart-python,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
题意:“pip3 无法安装 openai-quickstart-python 的依赖项”
问题背景:
I try to run this tutorial openai-quickstart-python, starting from a clean ubuntu docker machine, everything up-to-date. But pip3 fails.
“我尝试在一个全新的 Ubuntu Docker 环境中运行这个教程 openai-quickstart-python,所有内容都已更新。但 pip3 无法安装。”
$ 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.txtERROR: 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.$ 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
Is there a better package manager for python? How to solve this issue?
“有更好的 Python 包管理器吗?如何解决这个问题?”
问题解决:
The error didn't state certifi~=2022.12.07
. So to fix this, just change the dependency to certifi>=2022.12.07
, which works just fine on my machine.
“错误信息中没有提到 certifi~=2022.12.07。因此,要修复这个问题,只需将依赖项更改为 certifi>=2022.12.07,这在我的机器上运行良好。”
这篇关于pip3 fails to install dependencies of openai-quickstart-python的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!