Install and run Python and relevant libraries

Installing Python and initialising Python ‘helpers’

Martien Lubberink

Session 2

EAA - ARC Python Primer for Accounting Research

Install and run Python and relevant libraries

Installing python

  • Package of choice: Anaconda
  • Installation is seamless, see demo.
    • After installation, you should run the Anaconda Navigator
    • I rely on Spyder for editing and running code
    • For education purposes use Jupyter Notebooks and Datalore

Installing python

  • Package of choice: Anaconda
  • Installation is seamless, see demo.
    • Note, after installation make sure you run this in the Anaconda prompt:
    • conda install anaconda-clean
    • this helps you restore Anaconda in case something goes wrong

Adding libraries

  • Anaconda installs most libraries for you, e.g. Pandas, Numpy
  • Once in a while you need additional libraries
  • Three options
    • Via the dedicated Anaconda prompt
    • Via pip install <packagename>
    • Via the Anaconda Navigator

Adding libraries

  • Anaconda installs most libraries for you, e.g. Pandas, Numpy
  • Install additional libraries
  • Three options
    • Via the dedicated Anaconda prompt
    • Via pip install <packagename>
    • Via the Anaconda Navigator

Adding libraries

  • Anaconda installs most libraries for you, e.g. Pandas, Numpy
  • Install additional libraries
  • Three options
    • Via the dedicated Anaconda prompt
    • Via pip install linearmodels
    • Via the Anaconda Navigator

Github

  • We will be using Github in due course.
  • For now it is best to register for Github and
  • install Github desktop.

StackOverflow

  • A great source of help is StackOverflow.
  • Whenever you get stuck, you will end up finding solutions on this site.
  • You can also post your question yourself.
  • Best to register StackOverflow.

Demo 1

Demo 2