Installation
Install via Anaconda
- Download and install Anaconda from Anaconda site.
-
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
-
update and upgrade the system
sudo apt update; sudo apt upgrade;
-
Install
Python
and its related packagesudo apt install python3-dev python3-pip python3-tk
-
Install numpy
pip3 install numpy
-
Install pypathway via pypi
pip3 install pypathway
macOS
-
if necessary, install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
If necessary install python3 and pip
brew install python3
-
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.
-
Install Python3
- Download python3.6 from following link https://www.python.org/downloads/windows/.
- Select
Add to PATH
while the installation
-
Install VS2015 compiler
- download and install Visual C++ 2015 Build Tools
-
Install PreCompiled numpy with mkl packages
- Download numpy with mkl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and Install it.
-
Install PyPathway
pip3 install pypathway
Troubleshooting
-
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
-
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.