Changes

Jump to: navigation, search

OPS435 Python Lab 1

300 bytes added, 10:09, 17 May 2017
PART 2 - Setting up Your Python Environment For Labs
yum update
</source>
:#Install extra packages for enterprise linux:<source>
yum install epel-release
</source>
:#Next install applications that we needrequired, first Python version 3 and version 2:<source>
yum install python34 python34-devel # Install python3.4 and python3.4 development libraries
yum install python python2-devel # Install python2.7 and python2.7 development libraries
yum install screen tmux && ln -s /usr/bin/true /etc/sysconfig/bash-prompt-screen
</source>
:# You will now set Set your hostname to the Linux Distribution we are using in case you did not set it correctly during the install process:<source>
hostnamectl set-hostname centos7 # Set your hostname to distribution-name
</source>
You will be required to use a text editor in order to create and modify your Python scripts. There are many text editors that provide various features to become more comfortable and productive during your Python coding sessions. Below is a table listing several common text editors and their features. <blockquote style="margin-left:35px;">{{Admon/tip|style="padding-left:25px"|Selecting an Appropriate Text Editor|'''Vim''' (recommended text editor for labs)<br>vim is a powerful text editor for system administration and programming tasks. All of the shortcuts and commands you've learned over the years will help you edit programs efficiently. Vim can be modified to become a full programming environment with all the necessary features.<br><br>'''Atom'''<br>This text editor is easy to use and contains powerful tools that comes with everything your need immediately. Atom allows for deep customisation customization from everything from complete functionality changes to just changing the theme.<br><br>'''Sublime'''<br>Insert discussion here}}</blockquote>
<ol><li value=6" style="margin-left:25px;">Installing vim(Vi IMproved) will give us syntax highlighting and allow for advanced customization for terminal editing.<br>Issue the following command to either install vim or confirm that it has already been installed:<source>
13,420
edits

Navigation menu