当前位置:网站首页>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 .
边栏推荐
- What is the difficulty of programming?
- Shell Scripting
- Openwrt build Hello ipk
- Opencv learning log 24 -- Hough transform 2 (maximum interval and minimum length can be limited)
- 渗透测试 ( 2 ) --- 渗透测试系统、靶机、GoogleHacking、kali工具
- Radar equipment (greedy)
- 【练习-2】(Uva 712) S-Trees (S树)
- Opencv learning log 13 corrosion, expansion, opening and closing operations
- 【练习-6】(PTA)分而治之
- (POJ - 3685) matrix (two sets and two parts)
猜你喜欢

信息安全-史诗级漏洞Log4j的漏洞机理和防范措施

滲透測試 ( 1 ) --- 必備 工具、導航

Luogu P1102 A-B number pair (dichotomy, map, double pointer)

7-1 understand everything (20 points)

Openwrt source code generation image

Information security - threat detection engine - common rule engine base performance comparison

Data storage in memory & loading into memory to make the program run

1529. Minimum number of suffix flips

Information security - threat detection - Flink broadcast stream broadcaststate dual stream merging application in filtering security logs

PySide6 信号、槽
随机推荐
[exercise-6] (PTA) divide and conquer
Configuration du cadre flask loguru log Library
TCP's three handshakes and four waves
1903. Maximum odd number in string
MySQL grants the user the operation permission of the specified content
Information security - Epic vulnerability log4j vulnerability mechanism and preventive measures
Opencv learning log 19 skin grinding
“鬼鬼祟祟的”新小行星将在本周安全掠过地球:如何观看
Opencv learning log 27 -- chip positioning
渗透测试 ( 5 ) --- 扫描之王 nmap、渗透测试工具实战技巧合集
1013. Divide the array into three parts equal to and
【练习-11】4 Values whose Sum is 0(和为0的4个值)
Information security - threat detection engine - common rule engine base performance comparison
Information security - security professional name | CVE | rce | POC | Vul | 0day
对iptables进行常规操作
628. Maximum product of three numbers
New to redis
1529. Minimum number of suffix flips
Penetration test (3) -- Metasploit framework (MSF)
Vs2019 initial use