为conda kafka安装添加通道

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

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

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

返回错误:

  1. Collecting package metadata (repodata.json): done
  2. Solving environment: failed
  3. PackagesNotFoundError: The following packages are not available from current channels:
  4. - confluent-kafka[version='>=1.4.2']

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

  1. requests
  2. certifi
  3. confluent-kafka[avro,json,protobuf]>=1.4.2

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

c2e8gylq

c2e8gylq1#

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

  1. conda install -c conda-forge python-confluent-kafka
  2. conda install -c conda-forge/label/gcc7 python-confluent-kafka
  3. conda install -c conda-forge/label/cf201901 python-confluent-kafka
  4. conda install -c conda-forge/label/cf202003 python-confluent-kafka

相关问题