参考:
https://blog.csdn.net/weixin_45685859/article/details/132916216
报错:
[23:59:14](pytorch) devil@OMEN:~$ [23:59:14](pytorch) deviconda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia -c nvidia Collecting package metadata (current_repodata.json): | WARNING conda.models.version:get_matcher(542): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1.*, but conda is ignoring the .* and treating it as 1.7.1 done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): \ failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/noarch/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. 'https//conda.anaconda.org/conda-forge/noarch'
解决方法:
conda config --remove-key channels
=============================
- version conda get_matcher superfluous deprecatedversion conda get_matcher superfluous deprecated instead version please get_matcher superfluous deprecated deprecation deprecations 39 userwarning deprecated pretrained abstractions aspnetcore deprecated microsoft deprecationwarning pkg_resources deprecated