Installation

Install via Anaconda

  1. Download and install Anaconda from Anaconda site.
  2. Install Pypathway

    conda install -c steamedsheep pypathway

From scratch

Setup the compiler and build the source from pypi. This method is not recommended for beginner. Installation is tested in Ubuntu 16.10, Ubuntu 16.04, Windows 10 1703, macOS 10.12.6 and macOS 10.13.1. Note that most of linux system come with gcc and build tools, if not, please install compiler using package manager or build from source.

Ubuntu

  1. update and upgrade the system

    sudo apt update; sudo apt upgrade;

  2. Install Python and its related package

    sudo apt install python3-dev python3-pip python3-tk

  3. Install numpy

    pip3 install numpy

  4. Install pypathway via pypi

    pip3 install pypathway

macOS

  1. if necessary, install Homebrew

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. If necessary install python3 and pip

    brew install python3

  3. Install PyPathway via pip

    pip3 install numpy pip3 install pypathway

Windows

Install PyPathway via Anaconda is highly recommended in windows!

Please refer to the section Install PyPathway via Anaconda. If you still want to install via pypi, this guide may help you.

  1. Install Python3

  2. Install VS2015 compiler

  3. Install PreCompiled numpy with mkl packages

  4. Install PyPathway

    pip3 install pypathway

Troubleshooting

  1. Hard-link code error: This error should occur while installing pypathway using conda in windows. We now cannot figure out the solution, but install Visual C++ 2015 Build Tools and then install anaconda's pip should fix this issue

    pip install pypathway

  2. Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools: Please download and install Microsoft Visual C++ Build Tools. However, Install via Anaconda is more easy and highly recommended method in Windows.