Prepare your computer for for machine learning (Python)

Summary of what you are going to install:

  • python
  • numpy
  • scipy
  • scikit-learn
  • keras
  • tensorflow
  • ipython

Step 1 – Update apt if needed:

sudo apt update

Step 2 – Install prerequisites:

sudo apt install build-essential 
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev

Step 3 – Install python via APT repositories:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7

Step 4 – Install machine learning libraries:

pip3.7 install --user numpy
pip3.7 install --user scipy
pip3.7 install --user scikit-learn
pip3.7 install --user ipython
pip3.7 install --user tensorflow
pip3.7 install --user pandas
pip3.7 install --user keras


Leave a Reply