ubuntu 22 自带的 python 3.10 安装 openai 时会报错 #124
pankejia2000
started this conversation in
General
Replies: 2 comments 1 reply
-
试一下 pip install --upgrade pip |
Beta Was this translation helpful? Give feedback.
0 replies
-
pip3 install aiohttp 试试 不行就降低python版本 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using cached openai-0.26.5.tar.gz (55 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [81 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 419, in _parse_attr
return getattr(StaticModule(module_name), attr_name)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 26, in init
spec = importlib.util.find_spec(name)
File "/usr/lib/python3.10/importlib/util.py", line 94, in find_spec
parent = import(parent_name, fromlist=['path'])
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/init.py", line 9, in
from openai.api_resources import (
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/api_resources/init.py", line 1, in
from openai.api_resources.completion import Completion # noqa: F401
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/api_resources/completion.py", line 4, in
from openai.api_resources.abstract import DeletableAPIResource, ListableAPIResource
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/api_resources/abstract/init.py", line 3, in
from openai.api_resources.abstract.api_resource import APIResource
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/api_resources/abstract/api_resource.py", line 4, in
from openai import api_requestor, error, util
File "/tmp/pip-install-xbkfvxn3/openai_4cba805039414e22a461f35318efe304/openai/api_requestor.py", line 21, in
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Beta Was this translation helpful? Give feedback.
All reactions