You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过conda安装nfcpy,如何在Anaconda中不使用pip安装?

如何在Anaconda中不使用pip安装nfcpy?

执行conda install nfcpy时出现如下错误:

(base) C:\WINDOWS\system32>conda install nfcpy
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - nfcpy

Current channels:

  - defaults
  - https://conda.anaconda.org/conda-forge

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

在anaconda.org搜索nfcpy无结果,但该包确实存在,以下是不使用pip的安装方法:

方法1:从源码构建conda包

  • 安装conda-build工具:
    conda install conda-build
    
  • 克隆nfcpy源码仓库:
    git clone https://github.com/nfcpy/nfcpy.git
    
  • 进入源码目录:
    cd nfcpy
    
  • 构建conda包:
    conda build .
    
  • 安装本地构建好的包:
    conda install --use-local nfcpy
    

方法2:安装本地conda包文件

  • 获取nfcpy对应的conda包文件(格式为.tar.bz2,可通过自行构建或可信第三方渠道获取)
  • 执行本地安装命令,替换路径为实际包文件路径:
    conda install /path/to/nfcpy-xxx.tar.bz2
    

内容的提问来源于stack exchange,提问作者SeanJ

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 08:12:32