Pages

Monday, August 12, 2019

Python Installation


Python Installation
   1)      For Windows:
Step-1: Anaconda Navigator tool required to do Data Science with Python. Type following URL
             https://repo.anaconda.com/archive/

Step-2: Select following option for setup file

Figure 1.2 Anaconda installer in Windows Operating System

In above image there must be option for 32-bit and 64-bit operating system.

Step-3: Download it and install it.

Step-4: After installation you will open it from menu as Anaconda Navigator.

Step-5: Select Jupyter Notebook for small program and Spyder for large program and project.
             Following image shows it:

Figure 1.3 Graphical View of Anaconda Navigator tool

2)      For Linux/Unix:
Following are the easy steps to install Python on Linux/Unix machine.
·        Open a Web browser and go to https://www.python.org/downloads/.
·        Follow the link to download zipped source code available for Unix/Linux.
·        Download and extract files.
·        Editing the Modules/Setup file if you want to customize some options.
·        run ./configure script
·        make
·        make install
This installs Python at standard location /usr/local/bin and its libraries at /usr/local/lib/pythonXX where XX is the version of Python.

Path Setting at Linux/Unix

To add the Python directory to the path for a particular session in Unix −
·        In the csh shell − type setenv PATH "$PATH:/usr/local/bin/python" and press Enter.
·        In the bash shell (Linux) − type export ATH="$PATH:/usr/local/bin/python" and press Enter.
·        In the sh or ksh shell − type PATH="$PATH:/usr/local/bin/python" and press Enter.
·        Note − /usr/local/bin/python is the path of the Python directory



No comments:

Post a Comment