title: CMake on Linux CentOS 7, how to force the system to use cmake3?
body: <p>I tried to install <a href="http://pytorch.org" rel="noreferrer">PyTorch</a> on my Linux CentOS 7.3. I downloaded its package, ran this command and got this error:</p>
  
  <pre><code>sudo python setup.py install
  
  running install
  running build_deps
  CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
    CMake 3.0 or higher is required.  You are running version 2.8.12.2
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>So I tried to install CMake 3 by using the command </p>
  
  <pre><code>sudo yum -y install cmake3
  </code></pre>
  
  <p>The installation went alright, but the system still uses cmake2.8 as default.
  If I type the yum info comnmand, I get this:</p>
  
  <pre><code>sudo yum info cmake
  
  Installed Packages
  Name        : cmake
  Arch        : x86_64
  Version     : 2.8.12.2
  Release     : 2.el7
  Size        : 27 M
  Repo        : installed
  From repo   : base
  Summary     : Cross-platform make system
  URL         : http://www.cmake.org
  License     : BSD and MIT and zlib
  Description : CMake is used to control the software compilation process using simple
              : platform and compiler independent configuration files. CMake generates
              : native makefiles and workspaces that can be used in the compiler
              : environment of your choice. CMake is quite sophisticated: it is possible
              : to support complex environments requiring system configuration, preprocessor
              : generation, code generation, and template instantiation.
  </code></pre>
  
  <p>So, the problem is clear: <strong>the system still sees cmake2.8 as default, and therefore Python does not use cmake3 for its PyTorch installation.</strong>
  How can I solve this problem?</p>
  
  <p>Thanks</p>