5 Replies Latest reply on Jul 24, 2018 1:23 AM by Intel Corporation

    how to install pytorch in a new conda env or steps to use the default one

    gauravk97

      on creating a new environment and trying to install pytorch this error pops up:

       

           (env2_pytorch) [u16849@c009 ~]$ conda install pytorch

          Fetching package metadata .............

          Solving package specifications: .

       

          Package plan for installation in environment /home/u16849/.conda/envs/env2_pytorch:

       

          The following NEW packages will be INSTALLED:

       

              cffi:         1.11.5-py36_intel_1  intel [intel]

              cudatoolkit:  9.0-h13b8566_0          

              cudnn:        7.1.2-cuda9.0_0         

              libffi:       3.2.1-intel_8        intel [intel]

              libgcc-ng:    7.2.0-hdf63c60_3        

              libstdcxx-ng: 7.2.0-hdf63c60_3        

              nccl:         1.3.5-cuda9.0_0         

              ninja:        1.8.2-py36h6bb024c_1    

              pycparser:    2.18-py36_intel_0    intel [intel]

              pytorch:      0.4.0-py36hdf912b8_0    

       

          Proceed ([y]/n)? y

       

          ERROR conda.core.link:_execute_actions(339): An error occurred while installing package 'defaults::cudnn-7.1.2-cuda9.0_0'.

          CondaError: Cannot link a source that does not exist. /home/u16849/.conda/pkgs/cudnn-7.1.2-cuda9.0_0/lib/libcudnn.so

          Running `conda clean --packages` may resolve your problem.

          Attempting to roll back.

       

       

          CondaError: Cannot link a source that does not exist. /home/u16849/.conda/pkgs/cudnn-7.1.2-cuda9.0_0/lib/libcudnn.so

          Running `conda clean --packages` may resolve your problem.

       

       

      In the guide, it was recommended to use default torch. Can you provide the steps on how to use it? and also is it python based?