English 中文(简体)
Environment
  • 时间:2024-12-22

Python Deep Learning - Environment


Previous Page Next Page  

In this chapter, 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

    Matplotpb

    Theano

    Keras

    TensorFlow

It is strongly recommend that Python, NumPy, SciPy, and Matplotpb 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 pne 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 pnux

Next, we can import the required pbraries 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 pne −

$ 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 pne of code −

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

Output

1.0.1

Confirm the installation of Tensorflow by executing the following pne of code −

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

Output

1.7.0

Confirm the installation of Keras by executing the following pne of code −

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

Output

2.1.5
Advertisements