Difference: PythonInstall (1 vs. 2)

Revision 22018-09-19 - rgeorgi

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Deleted:
<
<
 

Installing Python

We are big fans of Python in the CLMS program, as it is increasingly popular for scientific computing, has an active user community with mature modules for many tasks available, as well as a fairly easy learning curve. This page will step through how to install a python environment on your local machine.

Line: 20 to 20
 For Ubuntu 16.04, python3 exists in the default repositories and can be installed with simply:
$ sudo apt-get install python3.6
Changed:
<
<

MacOS

  1. MacOS does not ship with developer tools by default, so to run many commandline tools you will have to download and install Xcode and the Command Line Toolsfor Xcode.
  2. After installing the above tools, there are two popular suites for installing commandline tools on OSX:
>
>

MacOS

  1. Follow the instructions in the Commandline Tools wiki page to install either MacPorts or Homebrew as a package manager.
 
  1. After installing one of the above suites and updating its repos, you can install Python3 and its package manager, pip, via:
    • Homebrew:
Changed:
<
<
      • brew install python
>
>
      • brew install python
 
    • Macports:
Changed:
<
<
      • sudo port install python36 py36-pip
  1. You may use macports or homebrew to install other python packages, but pip tends to be more up-to-date. You can try installing virtualenv with pip:
    • sudo pip3 install virtualenv
>
>
      • sudo port install python36 py36-pip
  1. You may use macports or homebrew to install other python packages, but pip tends to be more up-to-date. For instance, you can try installing virtualenv with pip:
    • sudo pip3 install virtualenv
 

Windows

  1. If you would like to stick with Windows' built-in shells (cmd.exe or powershell.exe), you can use Chocolatey:
    1. Installing Chocolatey
Changed:
<
<
  1. We would reccomend using one of the POSIX-like shells available for windows, however:
    • Cygwin
      • The cygwin installer both allows for a basic installation as well as package management. You may find python3 by using the cygwin installer.
    • Windows Subsystem for Linux
      • WSL installs a sort-of-kernel to run a Linux distribution from your windows commandline. Ubuntu is the standard and can use the apt-get installation command above.
>
>
  1. We would reccomend using one of the POSIX-like shells available for windows

Revision 12018-09-18 - rgeorgi

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Installing Python

We are big fans of Python in the CLMS program, as it is increasingly popular for scientific computing, has an active user community with mature modules for many tasks available, as well as a fairly easy learning curve. This page will step through how to install a python environment on your local machine.

N.B. As of the time of writing (2018), Python 3 is reccomended for most new projects, though is not always the default version of Python installed on many systems. This tutorial will focus on installing Python 3.

If you are unsure of your python version, you can always use the commandline

$ python
 --version
Python 3.6.4

Linux

If you're using linux, we trust that you're used to googling for answers to software, and will leave that up to you.

In most cases, this can be done using your distro's package manager.

For Ubuntu 16.04, python3 exists in the default repositories and can be installed with simply:

$ sudo apt-get install python3.6

MacOS

  1. MacOS does not ship with developer tools by default, so to run many commandline tools you will have to download and install Xcode and the Command Line Toolsfor Xcode.
  2. After installing the above tools, there are two popular suites for installing commandline tools on OSX:
  3. After installing one of the above suites and updating its repos, you can install Python3 and its package manager, pip, via:
    • Homebrew:
      • brew install python
    • Macports:
      • sudo port install python36 py36-pip
  4. You may use macports or homebrew to install other python packages, but pip tends to be more up-to-date. You can try installing virtualenv with pip:
    • sudo pip3 install virtualenv

Windows

  1. If you would like to stick with Windows' built-in shells (cmd.exe or powershell.exe), you can use Chocolatey:
    1. Installing Chocolatey
  2. We would reccomend using one of the POSIX-like shells available for windows, however:
    • Cygwin
      • The cygwin installer both allows for a basic installation as well as package management. You may find python3 by using the cygwin installer.
    • Windows Subsystem for Linux
      • WSL installs a sort-of-kernel to run a Linux distribution from your windows commandline. Ubuntu is the standard and can use the apt-get installation command above.
 
This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Privacy Statement Terms & Conditions