How to install pytorch in windows?

前端 未结 16 2052
时光取名叫无心
时光取名叫无心 2020-12-05 19:52

I am trying to install pytorch on windows and there is one which is available for it but shows an error.

conda install -c peterjc123 pytorch=0.1.12
         


        
16条回答
  •  感情败类
    2020-12-05 20:28

    I was using the official website(https://pytorch.org/get-started/locally/) where the following command is mentioned for Windows 10 & Conda environment:

    conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

    I ran this command in Anaconda command prompt but I was getting stuck as there were following errors

    ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::pycurl-7.43.0.1-py36h74b6da3_0'. WindowsError(5, 'Access is denied')

    To rectify this I opened the Anaconda command prompt as administrator and then ran the same command again. It solved the access issue and allowed the package to get installed.

    So you just have to use following two steps:

    Step 1: Open Anaconda prompt as administrator

    Step 2: run following command

    conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

提交回复
热议问题