title: How to install scala 2.12
body: <p>There are multiple binary incompatible scala 2 versions, however the document says the installation is either via IDE or SBT.</p>
  <p><a href="https://www.scala-lang.org/download/scala2.html" rel="nofollow noreferrer">DOWNLOAD SCALA 2</a></p>
  <blockquote>
  <p>Then, install Scala:...either by installing an IDE such as IntelliJ, or sbt, Scala's build tool.</p>
  </blockquote>
  <p><a href="https://spark.apache.org/docs/latest/#spark-overview" rel="nofollow noreferrer">Spark 3</a> needs Scala 2.12.</p>
  <blockquote>
  <p>Spark 3.1.2 uses Scala 2.12. You will need to use a compatible Scala version (2.12.x).</p>
  </blockquote>
  <p>Then how can we make sure the scala version is 2.12 if we install sbt?</p>
  <p>Or the documentation is not accurate and it should be &quot;to use specific version of scala, need to download specific scala version on your own&quot;?</p>
  <hr />
  <h1>Updates</h1>
  <p>As per the answer by <a href="https://stackoverflow.com/users/5205022/mario-galic">mario-galic</a>, in <a href="https://www.scala-lang.org/2020/06/29/one-click-install.html" rel="nofollow noreferrer">ONE-CLICK INSTALL FOR SCALA</a> it is said:</p>
  <blockquote>
  <p>Installing Scala has always been a task more challenging than necessary, with the potential to drive away beginners. Should I install Scala itself? sbt? Some other build tools? What about a better REPL like Ammonite? Oh and before all that I need to install Java?</p>
  <p>To solve this problem, the Scala Center contracted Alexandre Archambault in January 2020 to add a one-click install of Scala through coursier. For example, on Linux, all we now need is:<br>
  <code>$ curl -Lo cs https://git.io/coursier-cli-linux &amp;&amp; chmod +x cs &amp;&amp; ./cs setup</code></p>
  </blockquote>