All Courses

Python Deep Learning - Environment

Neha Kumawat

2 years ago

Python Deep Learning - Environment | insideAIML
          In this blog, we will learn about the environment set up for Python Deep Learning. We have to install the following software for making deep learning algorithms.
  • Python 2.7+
  • Scipy with Numpy
  • Matplotlib
  • Theano
  • Keras
  • TensorFlow
It is strongly recommended that Python, NumPy, SciPy, and Matplotlib are installed through the Anaconda distribution. It comes with all of those packages.
We need to ensure that the different types of software are installed properly.
Let us go to our command line program and type in the following command −

$ python
Python 3.6.3 |Anaconda custom (32-bit)| (default, Oct 13 2017, 14:21:34)
[GCC 7.2.0] on linux
Next, we can import the required python libraries and print their versions −

import numpy
print numpy.__version__
Output

1.14.2

Installation of Theano, TensorFlow and Keras

            Before we begin with the installation of the packages − Theano, TensorFlow and Keras, we need to confirm if the pip is installed. The package management system in Anaconda is called the pip.
To confirm the installation of pip, type the following in the command line −

$ pip
Once the installation of pip is confirmed, we can install TensorFlow and Keras by executing the following command −

$pip install theano
$pip install tensorflow
$pip install keras
Confirm the installation of Theano by executing the following line of code −

$python –c “import theano: print (theano.__version__)”
Output

1.0.1
Confirm the installation of Tensorflow by executing the following line of code −

$python –c “import tensorflow: print tensorflow.__version__”
Output

1.7.0
Confirm the installation of Keras by executing the following line of code −

$python –c “import keras: print keras.__version__”
Using TensorFlow backend
Output

2.1.5

Summary 

             In this blog, we will learn about the environment set up for Python Deep Learning. Check the  Python and Numpy install properly. Also, Learn how to  Installation Theano, TensorFlow and Keras.
I hope you understand how to set up an environment for python deep learning. If any queries, write them down in the comment section. 
    
Like the Blog, then Share it with your friends and colleagues to make this AI community stronger. 
To learn more about nuances of Artificial Intelligence, Python Programming, Deep Learning, Data Science and Machine Learning, visit our insideAIML blog page.
Keep Learning. Keep Growing. 

Submit Review