gpt4 book ai didi

python - 尝试从 azure 管道中的 ubuntu 虚拟机运行 'conda install python=3.7' 时,Conda 超时

转载 作者:行者123 更新时间:2023-12-03 02:20:52 34 4
gpt4 key购买 nike

作为 azure 构建管道的一部分在 azure 虚拟机上运行时,为什么 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 分钟超时。

最佳答案

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

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

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

您可以引用Conda - Silently installing a packageconda install

关于python - 尝试从 azure 管道中的 ubuntu 虚拟机运行 'conda install python=3.7' 时,Conda 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69122814/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com