Chapter 2 Environment setup

2.1 Install Python

browseURL("https://www.anaconda.com/products/individual")
  • This will install both Python and Anaconda.

2.2 Install reticulate

install.packages("reticulate")

2.3 Install econPy

if(!require(devtools)){
    install.packages("devtools")
  }
  devtools::install_github(
    "tpemartin/econPy", force=T
  )

2.4 Initiate a conda environment

Addins > Setup project for Py

2.5 Package install

Addins > Install Pkgs via conda

  • Try install numpy and pandas
browseURL("https://anaconda.org/anaconda/repo")

Addins > Install Pkgs via pip

  • Try install google-api-python-client and oauth2client
browseURL("https://pypi.org/project/pip/")

2.6 Global options

  • Global Options > Code > Display : check show whitespace characters

  • Set Python interpretor

reticulate::conda_python()

2.7 Github and Gitter

browseURL("https://github.com")

2.8 Gambit

2.8.1 Command-line interface

Mac

brew install autoconf automake libtool2