title: No matching distribution found for scs==2.1.4
body: <p>I'm using conda 4.10.3 on Windows 10 64bit.</p>
  <p>I'm trying to create a conda environment with these two files: <a href="https://github.com/PacktPublishing/Machine-Learning-for-Algorithmic-Trading-Second-Edition/blob/master/installation/windows/ml4t.yml" rel="nofollow noreferrer">ml4t.yml</a> and <a href="https://github.com/PacktPublishing/Machine-Learning-for-Algorithmic-Trading-Second-Edition/blob/master/installation/ml4t-base.yml" rel="nofollow noreferrer">ml4t-base.yml</a>.</p>
  <p>First, I have tried with:</p>
  <p><code>mamba env create -f installation/windows/ml4t.yml</code></p>
  <p><strong>I get an error</strong>, so I have tried with:</p>
  <p><code>mamba env create -f installation/ml4t-base.yml</code></p>
  <p>The first file, <code>ml4t.yml</code>, is to create the environment with the latest versions of the libraries used in the notebooks (as of April 2021).</p>
  <p>The second file, <code>ml4t-base.yml</code>, is to create the environment  with the latest library versions as of whenever you read this.</p>
  <p>You can find more information about installation <a href="https://github.com/PacktPublishing/Machine-Learning-for-Algorithmic-Trading-Second-Edition/tree/master/installation" rel="nofollow noreferrer">here</a>.</p>
  <p>On both cases I have an error with <code>pip</code> and <code>scs</code> package.</p>
  <p>With the first one file, <code>ml4t.yml</code>, I get this error message:</p>
  <blockquote>
  <p>ERROR: No matching distribution found for scs==2.1.4</p>
  </blockquote>
  <p>And with the second one I get this error message:</p>
  <pre><code>ERROR: Failed building wheel for scs
      ERROR: Command errored out with exit status 1:
       command: 'D:\Programs\anaconda3\envs\ml4t\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\liber\\AppData\\Local\\Temp\\pip-install-j5wtb8f1\\scs_401115d47d5d45089d65831a3a0a65f4\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\liber\\AppData\\Local\\Temp\\pip-install-j5wtb8f1\\scs_401115d47d5d45089d65831a3a0a65f4\\setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\MyUser\AppData\Local\Temp\pip-record-5xnj3hxm\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Programs\anaconda3\envs\ml4t\Include\scs'
           cwd: C:\Users\MyUser\AppData\Local\Temp\pip-install-j5wtb8f1\scs_401115d47d5d45089d65831a3a0a65f4\
      Complete output (27 lines):
      Namespace(blas64=False, extraverbose=False, float32=False, gpu=False, int32=False, openmp=False, root_dir='./', scs=False)
      using blas_opt / lapack_opt
      blas_opt / lapack_opt install failed, trying blas / lapack
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      copying scs.py -&gt; build\lib.win-amd64-3.8
      running build_ext
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      building '_scs_direct' extension
      creating build\temp.win-amd64-3.8
      creating build\temp.win-amd64-3.8\Release
      creating build\temp.win-amd64-3.8\Release\src
      creating build\temp.win-amd64-3.8\Release\linsys
      creating build\temp.win-amd64-3.8\Release\linsys\direct
      creating build\temp.win-amd64-3.8\Release\linsys\direct\external
      cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DCTRLC=1 -DCOPYAMATRIX -DDLONG=1 -I./ -I./include -ID:\Programs\anaconda3\envs\ml4t\lib\site-packages\numpy\core\include -I./linsys -I./linsys/direct/ -I./linsys/direct/external/ -ID:\Programs\anaconda3\envs\ml4t\include -ID:\Programs\anaconda3\envs\ml4t\include /Tcscsmodule.c /Fobuild\temp.win-amd64-3.8\Release\scsmodule.obj -O3
      running install
      running build
      running build_py
      running build_ext
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      building '_scs_direct' extension
      cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DCTRLC=1 -DCOPYAMATRIX -DDLONG=1 -I./ -I./include -ID:\Programs\anaconda3\envs\ml4t\lib\site-packages\numpy\core\include -I./linsys -I./linsys/direct/ -I./linsys/direct/external/ -ID:\Programs\anaconda3\envs\ml4t\include -ID:\Programs\anaconda3\envs\ml4t\include /Tcscsmodule.c /Fobuild\temp.win-amd64-3.8\Release\scsmodule.obj -O3
      error: Command &quot;cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DCTRLC=1 -DCOPYAMATRIX -DDLONG=1 -I./ -I./include -ID:\Programs\anaconda3\envs\ml4t\lib\site-packages\numpy\core\include -I./linsys -I./linsys/direct/ -I./linsys/direct/external/ -ID:\Programs\anaconda3\envs\ml4t\include -ID:\Programs\anaconda3\envs\ml4t\include /Tcscsmodule.c /Fobuild\temp.win-amd64-3.8\Release\scsmodule.obj -O3&quot; failed with exit status 127
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'D:\Programs\anaconda3\envs\ml4t\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\liber\\AppData\\Local\\Temp\\pip-install-j5wtb8f1\\scs_401115d47d5d45089d65831a3a0a65f4\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\liber\\AppData\\Local\\Temp\\pip-install-j5wtb8f1\\scs_401115d47d5d45089d65831a3a0a65f4\\setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\MyUser\AppData\Local\Temp\pip-record-5xnj3hxm\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Programs\anaconda3\envs\ml4t\Include\scs' Check the logs for full command output.
  
  failed
  
  CondaEnvException: Pip failed
  </code></pre>
  <p>You can find the full output in <a href="https://pastebin.com/Hv20CJfg" rel="nofollow noreferrer">pastebin</a>.</p>
  <p>It seems that there is compatibility error between <code>numpy</code> version and <code>scs</code>, as you can see <a href="https://github.com/bodono/scs-python/issues/33" rel="nofollow noreferrer">here</a>:</p>
  <blockquote>
  <p>Currently, installing SCS requires numpy&lt;1.20 to be installed.</p>
  </blockquote>
  <p>I have tried to change the numpy version in the first file, <code>ml4t.yml</code> to <code>- numpy=1.19.5</code> but I still get the same error.</p>
  <p>How can I fix this problem?</p>