Preliminaries:
-
Install
homebrew
:$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
Install Java:
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
-
Install Graphviz:
$ brew install graphviz
-
Install Git:
$ brew install git
-
Clone this repository with the examples:
$ git clone https://github.com/jphall663/GWU_rml.git
-
Install Anaconda Python 5.1.0 from the Anaconda archives (Anaconda3-5.1.0-MacOSX-x86_64.pkg) and add it to your system path. (This means when you type
$ python
at the command prompt, you will start a Python 3.6 session. You should probably check for a line like thisexport PATH="/Users/phall/anaconda/bin:$PATH"
in your.bash_profile
file. You may also need to close and restart your terminal session.) -
Install
virtualenv
:$ pip install virtualenv
-
Change directories into the cloned repository:
$ cd GWU_rml
-
Create a Python 3.6 virtual environment:
$ virtualenv -p /path/to/anaconda3/bin/python3.6 env_rml
(/path/to/anaconda3/bin/python3.6
is not a real path. You must replace it with the path topython3.6
on your system. This can be as simple as$ virtualenv -p python3.6 env_rml
.) -
Activate the virtual environment:
$ source env_rml/bin/activate
-
Install the correct packages for the example notebooks:
$ pip install -r requirements.txt
-
Start Jupyter:
$ jupyter notebook
-
When you are finished, deactivate the environment:
$ deactivate
If you get stuck, try this link: Mac Setup: Virtualenv.
-
Install Git (
$ sudo apt-get install git
), Graphviz ($ sudo apt-get install graphviz
) and Java ($ sudo apt-get install openjdk-8-jdk
). They must all be added to your system path. -
Clone this repository with the examples:
$ git clone https://github.com/jphall663/GWU_rml.git
-
Install Anaconda Python 5.1.0 from the Anaconda archives (Anaconda3-5.1.0-Linux-x86_64.sh) and add it to your system path. (This means when you type
$ python
at the command prompt, you will start a Python 3.6 session.) -
Install
virtualenv
:$ pip install virtualenv
-
Change directories into the cloned repository:
$ cd GWU_rml
-
Create a Python 3.6 virtual environment:
$ virtualenv -p /path/to/anaconda3/bin/python3.6 env_rml
-
Activate the virtual environment:
$ source env_rml/bin/activate
-
Install the correct packages for the example notebooks:
$ pip install -r requirements.txt
-
Start Jupyter:
$ jupyter notebook
-
When you are finished, deactivate the environment:
$ deactivate
.