我喜欢水蟒-我每天都使用它-对整个团队来说真是太好了!但是,我目前在为隔离的网络设置脱机存储库时遇到问题。这正是我尝试过的方法-很抱歉,这篇文章的篇幅太长了,但想非常准确,以帮助那些可能尝试帮助我的人:
conda信息输出如下:
active environment : base
active env location : /data1/Anaconda/Anaconda3-5.3.1/anaconda3
shell level : 1
user config file : /home/tapitts/.condarc
populated config files : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/.condarc
conda version : 4.5.11
conda-build version : 3.15.1
python version : 3.7.0.final.0
base environment : /data1/Anaconda/Anaconda3-5.3.1/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 (offline)
https://repo.anaconda.com/pkgs/main/noarch (offline)
https://repo.anaconda.com/pkgs/free/linux-64 (offline)
https://repo.anaconda.com/pkgs/free/noarch (offline)
https://repo.anaconda.com/pkgs/r/linux-64 (offline)
https://repo.anaconda.com/pkgs/r/noarch (offline)
https://repo.anaconda.com/pkgs/pro/linux-64 (offline)
https://repo.anaconda.com/pkgs/pro/noarch (offline)
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/main/linux-64
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/main/noarch
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/free/linux-64
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/free/noarch
package cache : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/pkgs
/home/tapitts/.conda/pkgs
envs directories : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/envs
/home/tapitts/.conda/envs
platform : linux-64
user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Linux/3.10.0-862.14.4.el7.x86_64 rhel/7.5 glibc/2.17
UID:GID : 29684:29684
netrc file : None
offline mode : True
conda install python = 3.6给出了一个打包计划,不包括python 3.6的conda-4.6.8 。它也比较短。
如果我回答是,则安装会在最后一刻失败,因为安装了python 3.6的软件包没有conda模块。之后,正如您所料,conda被完全破坏了,因为我们缺少了python 3.6的conda模块。我什至不能做conda信息。我意识到您通常不想在基本环境中降级python,但是,真正的问题在接下来的事情中变得很明显。如果我更改.condarc文件(将通道限制为磁盘上的通道),以便它在continuum.io处到达存储库,我们将看到conda info的结果是:
active environment : base
active env location : /data1/Anaconda/Anaconda3-5.3.1/anaconda3
shell level : 1
user config file : /home/tapitts/.condarc
populated config files : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/.condarc
conda version : 4.5.11
conda-build version : 3.15.1
python version : 3.7.0.final.0
base environment : /data1/Anaconda/Anaconda3-5.3.1/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/main/linux-64
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/main/noarch
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/free/linux-64
file:///data1/Anaconda/Anaconda3-5.3.1/repo.continuum.io/pkgs/free/noarch
package cache : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/pkgs
/home/tapitts/.conda/pkgs
envs directories : /data1/Anaconda/Anaconda3-5.3.1/anaconda3/envs
/home/tapitts/.conda/envs
platform : linux-64
user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Linux/3.10.0-862.14.4.el7.x86_64 rhel/7.5 glibc/2.17
UID:GID : 29684:29684
netrc file : None
offline mode : False
主要区别在于将首先使用在线Web存储库。请注意,据我所知,使用wget在repo.continuum.io上获取回购文件,Web回购文件与磁盘上的文件回购文件相同。
在这种情况下,
的包装计划conda安装python = 3.6
表示在这种情况下将安装用于3.6的 conda模块(此后所有功能也都很好)。但是,安装的软件包清单是完全不同的(长得多)。这是我最关心的问题-我可能做错了事,但无法弄清楚我在阅读和实验中的目的。安装的解决方案应该相同。如果不是这样,那么我可能会遇到麻烦,因为隔离网络上的人们开始安装和管理针对他们的任务和工作循环的各种本地安装。顺便说一句,2018.12也发生了同样的事情。有什么建议吗?