当试图在azure管道中从ubuntu vm运行“Conda install python=3.7”时,Conda超时

2024-04-23 11:23:33 发布

您现在位置:Python中文网/ 问答频道 /正文

作为azure构建管道的一部分在azure vm上运行时,为什么conda不能完成更新

  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/share/miniconda/pkgs
                          /home/vsts/.conda/pkgs
       envs directories : /usr/share/miniconda/envs
                          /home/vsts/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.25.1 CPython/3.9.5 Linux/5.8.0-1040-azure ubuntu/20.04.3 glibc/2.31
                UID:GID : 1001:121
             netrc file : None
           offline mode : False


track_features: []
unsatisfiable_hints: True
unsatisfiable_hints_check_depth: 2
update_modifier: update_specs
use_index_cache: False
use_local: False
use_only_tar_bz2: False
verbosity: 0
verify_threads: 1
whitelist_channels: []

conda install -c anaconda python=3.7

    cryptography-3.4.7         |   py37hd23ed53_0         904 KB
    openssl-1.1.1l             |       h7f8727e_0         2.5 MB
    pip-21.0.1                 |   py37h06a4308_0         1.8 MB
    pycosat-0.6.3              |   py37h27cfd23_0          81 KB
    pysocks-1.7.1              |           py37_1          27 KB
    python-3.7.11              |       h12debd9_0        45.3 MB
    ruamel_yaml-0.15.100       |   py37h27cfd23_0         253 KB
    setuptools-52.0.0          |   py37h06a4308_0         710 KB
    ------------------------------------------------------------
                                           Total:        56.1 MB

The following packages will be UPDATED:

  openssl                                 1.1.1k-h27cfd23_0 --> 1.1.1l-h7f8727e_0
  pysocks                              1.7.1-py39h06a4308_0 --> 1.7.1-py37_1

The following packages will be DOWNGRADED:

  brotlipy                          0.7.0-py39h27cfd23_1003 --> 0.7.0-py37h27cfd23_1003
  certifi                          2021.5.30-py39h06a4308_0 --> 2021.5.30-py37h06a4308_0
  cffi                                1.14.6-py39h400218f_0 --> 1.14.6-py37h400218f_0
  chardet                           4.0.0-py39h06a4308_1003 --> 4.0.0-py37h06a4308_1003
  conda                               4.10.3-py39h06a4308_0 --> 4.10.3-py37h06a4308_0
  conda-package-han~                   1.7.3-py39h27cfd23_1 --> 1.7.3-py37h27cfd23_1
  cryptography                         3.4.7-py39hd23ed53_0 --> 3.4.7-py37hd23ed53_0
  pip                                 21.1.3-py39h06a4308_0 --> 21.0.1-py37h06a4308_0
  pycosat                              0.6.3-py39h27cfd23_0 --> 0.6.3-py37h27cfd23_0
  python                                   3.9.5-h12debd9_4 --> 3.7.11-h12debd9_0
  ruamel_yaml                       0.15.100-py39h27cfd23_0 --> 0.15.100-py37h27cfd23_0
  setuptools                          52.0.0-py39h06a4308_0 --> 52.0.0-py37h06a4308_0


它将在此暂停,直到60分钟超时


Tags: httpscomfalsekblinuxrepombanaconda
1条回答
网友
1楼 · 发布于 2024-04-23 11:23:33

谢谢C.B.Merv。将您的建议发布为帮助其他社区成员的答案

您可以在永久VM而不是临时管道VM上手动运行它。执行过程中出现提示:Proceed ([y]/n)?。Azure中的输出未显示此提示

要克服等待提示回复时超时的问题,可以运行以下命令conda install -y。它不要求确认

你可以参考Conda - Silently installing a packageconda install

相关问题 更多 >