当前位置:网站首页>Some problems encountered in installing pytorch in windows11 CONDA
Some problems encountered in installing pytorch in windows11 CONDA
2022-07-06 16:10:00 【Rath mile_ LeslieWu】
Catalog
Project scenario :
I did it again today anaconda, Put on miniconda(anaconda It's too big , Many useless bags occupy space , also pycharm Often index pkg The file of ).
Problem description 1
reinstall conda after , Then match Tsinghua source , Just want to put pytorch packed , according to pytorch Official website order , Copy and download , However, installation was not found torch The speed is still relatively slow .
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
Cause analysis :
At the end of the command -c pytorch Need to get rid of it. , Otherwise, the command defaults to go pytorch Source , Still unable to use the speed of domestic sources .
Solution :
Just delete the ending .
conda install pytorch torchvision torchaudio cudatoolkit=11.3
Problem description 2
After configuration as required , Follow the command to download pytorch, Later, I encountered a problem ,PackagesNotFoundError: The following packages are not available from current channels:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- torchvision
- torchaudio
Current channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Cause analysis :
pytorh Some dependent packages are not available in the current channel .
Solution :
stay .condarc Modify the file , hold pytorch Raise the priority
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64/# hold pytorch Lift it up haha
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
Don't ctrl+c interrupt
In the installation to pytorch When this bag , And then install it to 99 When , It seems to have stopped and failed , It's not , After downloading the package , The compressed package must be decompressed , Then it has to be transmitted to the corresponding env Inside , So it takes more time , I looked as if it had failed twice before , Then interrupt , Lead to conda There is also a cache left , need conda clean --all Clean up and download again , Wasted a lot of time .
边栏推荐
- TCP's three handshakes and four waves
- 【高老师UML软件建模基础】20级云班课习题答案合集
- Configuration du cadre flask loguru log Library
- 【练习-6】(Uva 725)Division(除法)== 暴力
- Openwrt build Hello ipk
- Opencv learning log 16 paperclip count
- 1903. Maximum odd number in string
- Candy delivery (Mathematics)
- b站 實時彈幕和曆史彈幕 Protobuf 格式解析
- Penetration test (2) -- penetration test system, target, GoogleHacking, Kali tool
猜你喜欢
读取和保存zarr文件
B - Code Party (girls' competition)
Information security - threat detection engine - common rule engine base performance comparison
[exercise-4] (UVA 11988) broken keyboard = = (linked list)
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
渗透测试 ( 8 ) --- Burp Suite Pro 官方文档
b站 实时弹幕和历史弹幕 Protobuf 格式解析
Gartner:关于零信任网络访问最佳实践的五个建议
信息安全-威胁检测引擎-常见规则引擎底座性能比较
信息安全-安全编排自动化与响应 (SOAR) 技术解析
随机推荐
Penetration test (7) -- vulnerability scanning tool Nessus
Interval sum ----- discretization
Opencv learning log 31 -- background difference
信息安全-威胁检测-flink广播流BroadcastState双流合并应用在过滤安全日志
628. Maximum product of three numbers
树莓派4B安装opencv3.4.0
807. Maintain the urban skyline
Penetration test (2) -- penetration test system, target, GoogleHacking, Kali tool
Gartner: five suggestions on best practices for zero trust network access
【练习-10】 Unread Messages(未读消息)
[exercise-3] (UVA 442) matrix chain multiplication
对iptables进行常规操作
【练习-1】(Uva 673) Parentheses Balance/平衡的括号 (栈stack)
【练习-4】(Uva 11988)Broken Keyboard(破损的键盘) ==(链表)
Data storage in memory & loading into memory to make the program run
If you want to apply for a programmer, your resume should be written like this [essence summary]
Radar equipment (greedy)
window11 conda安装pytorch过程中遇到的一些问题
JS call camera
frida hook so层、protobuf 数据解析