I’m facing the same issue.
I’m rather new to all this, so I’m assuming I’m just doing something wrong with/in my setup script
(I’ve tried the default in the readme, and the various solutions from issue tracker, this is the latest ensemble I’ve tried)
conda create -n pyto python=3.6 -y
activate pyto

conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing pandas seaborn plotly scipy statsmodels jupyter notebook cython tbb -y
pip --no-cache-dir install cufflinks 
pip --no-cache-dir install sklearn
pip --no-cache-dir install tbb

cd %USERPROFILE%
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch

python setup.py clean

set ANACONDA_ROOT=%USERPROFILE%\Anaconda3
set MKLProductDIR=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows

set USER_LDFLAGS=/LIBPATH:%ANACONDA_ROOT%\envs\pyto\Library\lib

set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

set DISTUTILS_USE_SDK=1
call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.11
set CMAKE_INCLUDE_PATH=%ANACONDA_ROOT%\envs\pyto\Library\include

set LIB=%MKLProductDir%\mkl\lib\intel64;%LIB%
set LIB=%MKLProductDIR%\tbb\lib\intel64\vc14;%LIB%
set LIB=%ANACONDA_ROOT%\Library\lib;%LIB%
set LIB=%ANACONDA_ROOT%\envs\pyto\Library\lib;%LIB%

set LD_LIBRARY_PATH=%MKLProductDIR%\tbb\lib\intel64\vc14;%LD_LIBRARY_PATH%
set LIBRARY_PATH=%MKLProductDIR%\tbb\lib\intel64\vc14;%LIBRARY_PATH%
set CMAKE_INCLUDE_PATH=%MKLProductDIR%\mkl\include;%CMAKE_INCLUDE_PATH%

python setup.py install


I installed both tbb and mkl from intel and I think I’ve installed the right packages from visual studio. I’m using anaconda3 5.2 with 3.6

Screenshot_5.png427×586 25.3 KB

Any insight into my issue will be much appreciated!