Python Installation and PyCharm Basics
Joan Boone
jpboone@email.unc.edu
Fall 2019
Python Installation and PyCharm Basics Joan Boone - - PowerPoint PPT Presentation
INLS 560 Programming for Information Professionals Python Installation and PyCharm Basics Joan Boone jpboone@email.unc.edu Fall 2019 Download Python Interpreter Go to the Python downloads page and select the version for your operating system
Joan Boone
jpboone@email.unc.edu
Fall 2019
Go to the Python downloads page and select the version for your operating system (Windows, Mac, Linux)
– 'Install Now' picks a default directory – 'Customize installation' lets you specify the directory location
Go to PyCharm download page and select the FREE Community Edition
Run the installation program
your projects, e.g., PyCharm_Projects
Click to navigate to interpreter location
that you just installed. Click OK.
Click to navigate to interpreter location
Initial project structure for INLS560
right-click for the context menu
File, and enter HelloWorld as file name
Project View Tool Window Editor
Steps to debug your program
statement in your program. When your program runs in debug mode, the debugger will pause when the statement is reached so you can examine program data
– You set breakpoints by clicking in the left gutter area next to the
statement that you want to pause at when the program is running.
– You can toggle the breakpoint on/off by clicking the red circle in
the gutter area.
resume execution so it runs until the next breakpoint
# 1 Set a breakpoint by clicking in left margin # 2 Run debugger # 3 Examine program variables # 4 Resume execution until the next breakpoint is reached 'Step Over' (or line by line) execution (optional)