Check out the latest documentation.

Installing the Python API

If you haven't already, you can obtain a copy of the latest version of the API using one of the links on the downloads page.

To install in Linux, there are two methods.

From pip

This is the quickest and easiest way to install 51Degrees python detector. Just use

								$ sudo pip install 51degrees-mobile-detector-v3-wrapper

								

or

								$ sudo pip install 51degrees-mobile-detector-v3-trie-wrapper

								

*Note: 51degrees-mobile-detector will be installed as a dependency.*

From git

However, if you want to build the package yourself and use the examples too. First clone 51Degrees/Device-Detection repository with

								$ git clone https://github.com/51Degrees/Device-Detection.git

								

Move to the Core directory with

								$ cd Device-Detection/python/core

								

and install with

								$ sudo make install

								

Now move to the directory for you chosen detection method (i.e. Pattern or Trie) with

								$ cd ../[package name]

								

Then install with

								$ sudo make install

								

Suggested Next Steps