If pip or conda fails to install swig you can try one of the following methods. It is mandatory to install swig version>=3.0.0
-
on linux Ubuntu:
sudo apt-get install swig
-
on linux Debian:
sudo aptitude install swig
-
on linux Fedora:
sudo yum install swig
-
on mac:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install swig
you can find further info here: http://www.swig.org/