为conda kafka安装添加通道

nkoocmlb  于 2021-06-04  发布在  Kafka
关注(0)|答案(1)|浏览(684)

我正在尝试基于requirements.txt创建conda环境:
运行命令:

conda create --name kafka-consumer --file requirements.txt

返回错误:

Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - confluent-kafka[version='>=1.4.2']

来自的requirements.txthttps://github.com/confluentinc/examples/blob/latest/clients/cloud/python/requirements.txt
包含:

requests
certifi
confluent-kafka[avro,json,protobuf]>=1.4.2

如何发现我需要添加哪个频道?

c2e8gylq

c2e8gylq1#

从https://anaconda.org/conda-forge/python-confluent-kafka/ 使用下列方法之一:

conda install -c conda-forge python-confluent-kafka
conda install -c conda-forge/label/gcc7 python-confluent-kafka
conda install -c conda-forge/label/cf201901 python-confluent-kafka
conda install -c conda-forge/label/cf202003 python-confluent-kafka

相关问题