Skip to content

Set up python with machine learning libraries

Iver Jordal edited this page Jun 14, 2019 · 4 revisions

Downloading and installing data science-related python packages manually can be hard and tedious. Anaconda to the rescue! It's basically a bundle that includes python and a number of common python dependencies. Download and install it if you don't have it (you should get the Python 3.* version): https://www.anaconda.com/download/

When Anaconda is installed, open "Anaconda Prompt" or any other terminal where you have conda available now.

Run the following command to install Scikit-Learn, TensorFlow and Keras (common machine learning libraries):

  • conda install "python=3.6.6" "scipy=1.1" "h5py<3" "tensorflow=1.11" "Keras=2.2" "scikit-learn=0.20"

This may take a couple of minutes.

Check your installation by running python -c "import keras". If no error appears, the installation should be fine. If it outputs "Using TensorFlow backend.", that's okay.

When you're ready, move on to the Tutorial

Clone this wiki locally