我想在我的windows机器上为conda添加本地频道。 我在.condarc文件中添加了必选行,我的文件如下所示:
channels:
- C:\Users\sofirx077029\Desktop\cache\
- defaults
auto_update_conda: true
always_yes: false
show_channel_urls: true
changeps1: true
add_pip_as_python_dependency: true
use_pip: true
offline: false
allow_softlinks: false
anaconda_upload: false
我创建了缓存文件夹,并在那里放了一些conda包,这些包是我从Anaconda Repo下载的。在
例如,当我试图安装conda软件包时:
^{pr2}$在我的命令窗口中可以看到:
C:\Users\sofirx077029>conda install xlrd Fetching package metadata .... WARNING: The remote server could not find the noarch directory for the requested channel with url: file:///C:/Users/sofirx077029/Desktop/cache
It is possible you have given conda an invalid channel. Please double-check your conda configuration using
conda config --show
.If the requested url is in fact a valid conda channel, please request that the channel administrator create
noarch/repodata.json
and associatednoarch/repodata.json.bz2
files, even ifnoarch/repodata.json
is empty. $ mkdir noarch $ echo '{}' > noarch/repodata.json $ bzip2 -k noarch/repodata.json ......... Solving package specifications: .Package plan for installation in environment C:\Users\sofirx077029\AppData\Local\Continuum\Anaconda3:
The following NEW packages will be INSTALLED:
xlrd: 1.0.0-py36_0 defaults
Proceed ([y]/n)? n
Exiting
在我的.condarc中,我也尝试过:
channels:
- file:///C:/Users/sofirx077029/Desktop/cache
- defaults
我的频道是无效的,我应该这样做吗? 请帮忙,我做错什么了? 非常感谢
目前没有回答
相关问题 更多 >
编程相关推荐