File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -135,24 +135,34 @@ conda install pytorch torchvision -c soumith
135135
136136### From source  
137137
138- Instructions for an Anaconda environment.
138+ If you are installing from source, we highly recommend installing an [ Anaconda] ( https://www.continuum.io/downloads )  environment.
139+ You will get a high-quality BLAS library (MKL) and you get a controlled compiler version regardless of your Linux distro.
140+ 
141+ Once you have [ anaconda] ( https://www.continuum.io/downloads )  installed, here are the instructions.
139142
140143If you want to compile with CUDA support, install
141144-  [ NVIDIA CUDA] ( https://developer.nvidia.com/cuda-downloads )  7.5 or above
142145-  [ NVIDIA CuDNN] ( https://developer.nvidia.com/cudnn )  v5.x
143146
144147#### Install optional dependencies  
145148
149+ On Linux
146150``` bash 
147151export  CMAKE_PREFIX_PATH=[anaconda root directory]
148152
149153#  Install basic dependencies
150154conda install numpy mkl setuptools cmake gcc cffi
151155
152- #  On Linux, add  LAPACK support for the GPU
156+ #  Add  LAPACK support for the GPU
153157conda install -c soumith magma-cuda75 #  or magma-cuda80 if CUDA 8.0
154158``` 
155159
160+ On OSX
161+ ``` bash 
162+ export  CMAKE_PREFIX_PATH=[anaconda root directory]
163+ conda install numpy setuptools cmake cffi
164+ ``` 
165+ 
156166#### Install PyTorch  
157167``` bash 
158168export  MACOSX_DEPLOYMENT_TARGET=10.9 #  if OSX
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments