我正在尝试根据requirements.txt创建一个conda环境:运行命令:conda create --name kafka-consumer --file requirements.txt返回错误:Collecting package metadata (repodata.json): doneSolving environment: failedPackagesNotFoundError: The following packages are not available from current channels: - confluent-kafka[version='>=1.4.2']需求.txt 来自https://github.com/confluenceinc/examples/blob/latest/clients/cloud/python/requirements.txt包含:requestscertificonfluent-kafka[avro,json,protobuf]>=1.4.2如何发现我需要添加哪个频道?
2 回答

一只萌萌小番薯
TA贡献1795条经验 获得超7个赞
这取决于你所拥有的操作系统,我认为 WIN 上的 Anaconda 所有者无法安装 confluence-kafka 相关软件包(到目前为止),但我建议通过 CDM 安装它,并在任何 IDE 上运行没有 Anaconda 的代码

沧海一幻觉
TA贡献1824条经验 获得超5个赞
使用以下之一:
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
添加回答
举报
0/150
提交
取消