How to install swig
Swig is the abbreviation of Simplified Wrapper and Interface Generator, it can give script language such as python the ability to invoke C and C++ libraries interface method indirectly.
Linux
Debian-based (Debian, Ubuntu, Mint, etc…)
sudo apt-get update
sudo apt-get swig
RPM-based (Red Hat Linux, CentOS, Fedora, openSuse, Mandrake Linux)
sudo yum update
sudo yum install swig
Windows
-
Download SWIG from http://www.swig.org/download.html.
-
Unzip the downloaded pack.
-
Run swig.exe file and follow the steps.
macOS
- In the command line, type:
brew update brew upgrade brew install swig brew cleanup
Leave a comment