Miscelaneous utilities

Installing modules

Command lines in Linux, OSX, Windows. Learn to start them

Distribution install vs pip module install

pip or python -m pip

Python 3 & Python 2


In [1]:
import sys
sys.version


Out[1]:
'3.5.3 (default, Jan 19 2017, 14:11:04) \n[GCC 6.3.0 20170118]'

Executing scripts

Save a file. Use an editor:

  • Windows: notepad++
  • OSX: ?
  • Linux: gedit

Bigger IDE: Pycharm

Execute it with the command line:

  • Linux/OSX: cd/ls/tab
  • Windows: cd/dir/tab

Killing scripts:

Ctrl-C

  • Windows: taskman/taskmon/taskmgr
  • Linux: killall python/ps -fe/top/kill
  • OSX: ?