Software Carpentry Boot Camp Python V0.1 dd 07-04-2015.

Slides:



Advertisements
Similar presentations
Fedora Linux Fedora: the (somewhat) new Linux distribution on the block. To switch or not to switch? Moreover, why use it at all? And, what is its target?
Advertisements

LINUX-WINDOWS INTERACTION. One software allowing interaction between Linux and Windows is WINE. Wine allows Linux users to load Windows programs while.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Lesson 5-Accessing Networks. Overview Introduction to Windows XP Professional. Introduction to Novell Client. Introduction to Red Hat Linux workstation.
Computer System Laboratory
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
An ide for teaching and learning prolog
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
Red Hat Installation. Installing Red Hat Linux is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on.
Embedded Programming and Robotics Lesson 17 The OpenCV (Computer Vision) Library The OpenCV Library1.
Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Linux Operations and Administration
Introduction to InVEST ArcGIS Tool Nasser Olwero GMP, Bangkok April
ISCE telecon Mar 19, 2015 ISCE developer team. Agenda ISCE download website Currently supported sensors Minimum requirements Recommended setup (OS X and.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
ABAQUS Installation on LINUX Platform D. Hanumanthappa, A. Jérusalem May 5th, 2010.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
(1) A Beginner’s Quick Start to SIMICS. (2) Disclaimer This is a quick start document to help users get set up quickly Does not replace the user guide.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
1 What is a Kernel The kernel of any operating system is the core of all the system’s software. The only thing more fundamental than the kernel is the.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Cole David Ronnie Julio Sam Littlefield. Let’s Begin  Globus Toolkit runs on Unix platform only  Install Ubuntu  download all updates for Ubuntu.
LINUX MINT 13 Introduction Linux Mint is a modern, elegant and comfortable operating system which is both powerful and easy to use. The minimum requirements.
 Linux Mint is a computer operating system designed to work on most modern systems, including typical x86 and x64 PC’s. Linux Mint can be thought of.
Python for: Data Science. Python  Python is an open source scripting language.  Developed by Guido Van Rossum in late 1980s  Named after Monty Python.
ZHT Hands-on tutorial How to install, configure and run ZHT on a multi-nodes cluster.
Building Your Own Android Systems from Source Adam C. Champion CSE 5236: Mobile App Development 1.
OS Project 0 February 25, Outline  Linux Installation  Linux Kernel Compilation  System Call Development  Kernel Modules / 452.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Installing CUDA, PyCUDA on Ubuntu
Implementation of Embedded OS
Your EC2 Instance. How to Connect to your EC2 Instance?
ECE 544 Software Project 1 Kuo-Chun Huang (KC). Environment Linux (Ubuntu or others) Windows with Cygwin
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
Day 1 Session 2. Setup & Installation
TIZEN STUDIO INSTALLATION & ENVIRONMENT SETUP FOR DEVLAB
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Installing Applications in FreeBSD
bitcurator-access-webtools Quick Start Guide
Outline Installing Gem5 SPEC2006 for Gem5 Configuring Gem5.
Chapter 9 Managing Software
MET4750 Techniques for Earth System Modeling
Computer System Laboratory
Install external command line softwares
Auburn University COMP 2710 Software Construction xCode Development Environment for C++ Programming in Mac OS Dr. Xiao.
DATA MINING Python.
Using Linux and Lab Setup OS Lab 1
Getting started in Eclipse
Engineering Innovation Center
Prepared by Kimberly Sayre and Jinbo Bi
Introduction to ligo_viewer
LING 388: Computers and Language
University of Texas Rio Grande Valley Systems Administration CSCI 6175
EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.
Download and Installation of code::blocks
Option One Install Python via installing Anaconda:
Software Setup & Validation
bitcurator-access-webtools Quick Start Guide
Computer System Laboratory
Computer System Laboratory
Python Users Group University of South Carolina
Installations for Course
Installations for Course
Presentation transcript:

Software Carpentry Boot Camp Python V0.1 dd

Boot Camp Introduction Introductory session Install all necessary software PythonBootCamp.ppt Get you at a basic level or more in depth

Boot Camp What Software Required software Python (2 or 3) –Numpy –Scipy –Matplotlib –AstroPy (FITS) –h5py (HDF) Cython f2py (part of numpy) Git Optional: ipython

Boot Camp Install Different Operating systems This document will help you out installing the required software for the Python Software Carpentry Boot Camp on the following operating systems:  MacOS  Linux  FC  Ubuntu  Windows

Boot Camp Install Python 2 or Python3 python2 is legacy, python 3 is the present and future, but…  Reason Language cleanup Better unicode support strings Several core aspects made more consistent Class new-style  Why still use Python 2 Legacy All required packages are python 2 and 3 compatible Many astronomical packages are python 2 ony Many OS-es still use version 2

Boot Camp Install MacOS  MacOS If you have Yosemite (10.10.x): Need Python (latest version) install this next to the official OS related python Prerequisites: gcc compiler (for Cython) gfortran compiler (for f2py) Go to the AppStore, search Xcode and ‘Install App’, may take some time as size is 1Gb –use activity monitor to track progress… $ python --version Python 2.7.6

Boot Camp Install on MacOS Go to the AppStore, search Xcode and ‘Install App’, may take some time as size is 1Gb –use activity monitor to track progress… –will install gcc, but we need a more recent version and –still need to install gfortran $ which gcc /usr/bin/gcc $ gcc –v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include- dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX sdk/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang ) (based on LLVM 3.5svn) Target: x86_64-apple-darwin Thread model: posix $ which gfortran

Boot Camp Install on MacOS Go to and download the appropriate versionhttp://hpc.sourceforge.net/ and install the newest version of gcc and gfortran which should now be in your path gcc-5.0-bin.tar.gz, gfortran-5.0-bin.tar.gz (gfortran only), updated Nov 2014 (Yosemite). gcc-4.9-bin.tar.gz, gfortran-4.9-bin.tar.gz (gfortran only), updated Nov 2014 (Mavericks & Yosemite). gcc-4.8-bin.tar.gz, gfortran-4.8-bin.tar.gz (gfortran only), updated Oct 2013 (M. Lion & Mavericks). gcc-4.7-bin.tar.gz, gfortran-4.7-bin.tar.gz (gfortran only), updated July 2012 (Lion & M. Lion). $ cd $ cd Downloads $ sudo tar –zxvf gcc-5.0-bin.tar.gz –C / $ sudo tar –zxvf gfortran-5.0-bin.tar.gz –C / $ which gcc /usr/local/bin/gcc $ which gfortran /usr/local/bin/gfortran

Boot Camp Install MacOS  MacOS If you have Yosemite (10.10.x): Need Python (latest version) install this next to the official OS related python Download the appropriate install package and run the installer $ python --version Python $ which python /usr/local/bin/python $ python –version Python 2.7.9

Boot Camp Install MacOS  Additional packages use the pip utility for this load numpy load scipy load matplotlib $ which pip /usr/local/bin/pip $ sudo pip install matplotlib... $ sudo pip install numpy... $ sudo pip install scipy...

Boot Camp Install MacOS load astropy load h5py, as you can seen, this automatically installs Cython as well $ pip matplotlib... $ sudo pip install astropy... $ sudo pip install h5py Downloading/unpacking h5py Downloading h5py cp27-none- macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_ x86_64.whl (4.3MB): 4.3MB downloaded Downloading/unpacking Cython>=0.17 (from h5py) Downloading Cython-0.22-cp27-none- macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_ x86_64.whl (3.7MB): 3.7MB downloaded Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy py2.7-macosx-10.6-intel.egg (from h5py) Installing collected packages: h5py, Cython Successfully installed h5py Cython Cleaning up...

Boot Camp Install MacOS  GIT download of the.dmg should start automatically Double click the package and then double click the installer iPython install $ which git /usr/bin/git $ sudo pip install “ipython[notebook]”... $ cd /usr/local/bin $ sudo ln –s../../../Library/Frameworks/Python.framework/Versions/2.7/bin/ipython $ which ipython /usr/local/bin/ipython

Boot Camp Install Linux  Linux You can install a fresh version of python: Need Python (latest version) install this next to the official OS related python Prerequisites: gcc compiler (for Cython) gfortran compiler (for f2py) $ python --version Python 2.7.8

Boot Camp Install on Linux Check version of gcc and gfortran in OS –still need to install gfortran $ which gcc /usr/bin/gcc $ gcc –v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper Target: x86_64-redhat-linux Configured with:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable- threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable- __cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build- id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto -- enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc /obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc /obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with- tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version (Red Hat ) (GCC) $ which gfortran /usr/bin/gfortran $ Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper Target: x86_64-redhat-linux Configured with:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable- threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable- __cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build- id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto -- enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc /obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc /obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with- tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version (Red Hat ) (GCC)

Boot Camp Install on Linux Install gcc and gfortran in OS $ which gcc $ sudo yum groupinstall "Development Tools and Libraries" # Fedora Core... $ sudo apt-get install buildessentials# Ubuntu... $ which gfortran $ sudo yum install gcc-gfortran# Fedora Core... $ sudo apt-get install gfortran# Ubuntu

Boot Camp Install Linux Need Python (latest version) install this next to the official OS related python Download the source code $ python --version Python $ cd /data2 $ wget Connecting to ( connected. HTTP request sent, awaiting response OK Length: (16M) [application/octet-stream] Saving to: âPython tgzâ Python tgz 100%[===========================================================>] 15.89M 46.5MB/s in 0.3s :08:19 (46.5 MB/s) - Python tgz saved [ / ]

Boot Camp Install on Linux unpack and install in alternative directory and set your environment to use this version: $ tar xzvf Python tgz... $ cd Python $./configure --prefix=/net/bree/data2/mypython/... $ make... $ make install... $ vi mypython.csh setenv PYTHONPATH /net/bree/data2/mypython/site-packages setenv PATH "/net/bree/data2/mypython/bin/":"$PATH" $ source mypython.csh $ which python /net/bree/data2/mypython/bin/python

Boot Camp Install on Linux add python tools and also install pip: # Let's download the installation file using wget: wget --no-check-certificate tar.gz # Extract the files from the archive: tar -xvf setuptools tar.gz # Enter the extracted directory: cd setuptools # Install setuptools using the Python we've installed (2.7.9) python setup.py install $ curl |python -...

Boot Camp Install Linux  Additional packages use the pip utility for this, note to get your personal one! load numpy load scipy load matplotlib $ which pip /net/bree/data2/mypython/bin/pip $ pip install matplotlib... $ pip install numpy... $ pip install scipy...

Boot Camp Install Linux load astropy load h5py, as you can seen, this automatically installs Cython as well $ pip matplotlib... $ pip install astropy... $ sudo pip install h5py Downloading/unpacking h5py Downloading h5py cp27-none- macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_ x86_64.whl (4.3MB): 4.3MB downloaded Downloading/unpacking Cython>=0.17 (from h5py) Downloading Cython-0.22-cp27-none- macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_ x86_64.whl (3.7MB): 3.7MB downloaded Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy py2.7-macosx-10.6-intel.egg (from h5py) Installing collected packages: h5py, Cython Successfully installed h5py Cython Cleaning up...

Boot Camp Install Linux  GIT, with root access install  Download $ sudo yum install git# Fedora Core $ sudo apt-get install git# Ubuntu $ whcih git /usr/bin/git $ wget $ tar zxvf git tar.gz... $cd git $./configure –prefix=/nen/bree/data2/mypython... $ make... $ make install...

Boot Camp Install Linux iPython install $ pip install “ipython[notebook]”... $ cd /usr/local/bin $ sudo ln –s../../../Library/Frameworks/Python.framework/Versions/2.7/bin/ipython $ which ipython /usr/local/bin/ipython

Boot Camp Install Windows  Windows –By default Windows does not have python installed –so get the Windows x86-64 MSI installer Prerequisites: –Also windows does not have any compilers installed either –gcc compiler (for Cython) –gfortran compiler (for f2py)

Boot Camp Install Windows  We wil make use of Anaconda installer as this allows easy installation pypi based packages  Go to –and download the Windos 4-Bit Python 2.7 Graphical Installer

Boot Camp Install Windows $ which pip /usr/local/bin/pip $ sudo pip install numpy... NumPy SciPy Pandas PyTables h5py Matplotlib IPython Spyder Qt/PySide VTK Numexpr Astropy Cython LLVM, LLVMpy Numba Scikit-learn Scikit-image NLTK NetworkX MayaVi Featured Packages

Boot Camp Install Windows  GIT download of the.exe should start automatically Double click the installer and follow the instructions (allow use from Windows command line)

Data processing example End