无法通过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
相关产品推荐
相关产品推荐

