我有这个requirments.txt文件:
confluent-kafka[avro]==1.1.0
Run Code Online (Sandbox Code Playgroud)
当我运行命令时 -
$ pip3 install -r requirments.txt
Run Code Online (Sandbox Code Playgroud)
这是我收到的错误:
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/k4/q3psbyqj0l79b8ch527mr36h0000gp/T/pip-install-d8igj48w/confluent-kafka_abe9a32f37bd4b23be43de3e07b30fb2/setup.py'"'"'; __file__='"'"'/private/var/folders/k4/q3psbyqj0l79b8ch527mr36h0000gp/T/pip-install-d8igj48w/confluent-kafka_abe9a32f37bd4b23be43de3e07b30fb2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/k4/q3psbyqj0l79b8ch527mr36h0000gp/T/pip-record-60zlo4l3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/confluent-kafka
cwd: /private/var/folders/k4/q3psbyqj0l79b8ch527mr36h0000gp/T/pip-install-d8igj48w/confluent-kafka_abe9a32f37bd4b23be43de3e07b30fb2/
Complete output (34 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/confluent_kafka
copying confluent_kafka/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/confluent_kafka …Run Code Online (Sandbox Code Playgroud)