解决Anaconda3 安装pytorch出错
2021/12/2 23:10:01
本文主要是介绍解决Anaconda3 安装pytorch出错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Anaconda3 安装pytorch出错:
conda install pytorch 1 Collecting package metadata (current_repodata.json): 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
解决办法:
conda config --add channels conda-forge
conda config --set channel_priority strict
conda config --set channel_priority flexible
直接我还用了
conda clean -a
conda clean -p
安装conda install pytorch
conda install pytorch Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/nication/anaconda3 added / updated specs: - pytorch The following packages will be downloaded: package | build ---------------------------|----------------- conda-4.11.0 | py39hf3d152e_0 16.8 MB conda-forge libblas-3.9.0 | 12_linux64_mkl 12 KB conda-forge libprotobuf-3.16.0 | h780b84a_0 2.5 MB conda-forge ninja-1.10.2 | h4bd325d_0 2.4 MB conda-forge python_abi-3.9 | 2_cp39 4 KB conda-forge pytorch-1.9.0 |cpu_py39h818de69_2 45.1 MB conda-forge sleef-3.5.1 | h7f98852_1 1.5 MB conda-forge ------------------------------------------------------------ Total: 68.4 MB The following NEW packages will be INSTALLED: libblas conda-forge/linux-64::libblas-3.9.0-12_linux64_mkl libprotobuf conda-forge/linux-64::libprotobuf-3.16.0-h780b84a_0 ninja conda-forge/linux-64::ninja-1.10.2-h4bd325d_0 python_abi conda-forge/linux-64::python_abi-3.9-2_cp39 pytorch conda-forge/linux-64::pytorch-1.9.0-cpu_py39h818de69_2 sleef conda-forge/linux-64::sleef-3.5.1-h7f98852_1 The following packages will be UPDATED: conda pkgs/main::conda-4.10.3-py39h06a4308_0 --> conda-forge::conda-4.11.0-py39hf3d152e_0 Proceed ([y]/n)? y Downloading and Extracting Packages sleef-3.5.1 | 1.5 MB | ################################# | 100% ninja-1.10.2 | 2.4 MB | ################################# | 100% pytorch-1.9.0 | 45.1 MB | #######1 | 22% pytorch-1.9.0 | 45.1 MB | #######1 | 22% libprotobuf-3.16.0 | 2.5 MB | ################################# | 100% python_abi-3.9 | 4 KB | ################################# | 100% conda-4.11.0 | 16.8 MB | ################################# | 100% libblas-3.9.0 | 12 KB | ################################# | 100%
OK
这篇关于解决Anaconda3 安装pytorch出错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-17zero-shot-learning-definition-examples-comparison
- 2024-06-06Package Easy(基于 NSIS 的打包exe安装包工具)使用方法-icode9专业技术文章分享
- 2024-06-06基于 casdoor 的 ELK 开源登录认证解决方案: elk-auth-casdoor-icode9专业技术文章分享
- 2024-05-29Elasticsearch慢查询日志配置
- 2024-05-29揭秘华为如此多成功项目的产品关键——Charter模板
- 2024-05-29海外IDC业务拓展的7大挑战
- 2024-05-29InLine Chat功能优化对标Github Copilot,CodeGeeX带来更高效、更直观的编程体验!
- 2024-05-29CodeGeeX 智能编程助手 6 项功能升级,在Visual Studio插件市场霸榜2周!
- 2024-05-29AutoMQ 生态集成 Apache Doris
- 2024-05-292024年IDC行业的深度挖掘:机遇、挑战与未来展望