interface is very easy to use as the usage is the same as that of LIBLINEAR. The
interface is developed with the built-in Python library "ctypes."
-Installation
-============
+Installation via PyPI
+=====================
-To install via pip or conda, run
+To install the interface from PyPI, execute the following command:
> pip install -U liblinear-official
-Alternatively, you may also directly use the Python interface without installing this package; see the following.
+Installation via Sources
+========================
+
+Alternateively, you may want to install the interface from sources and generate
+the LIBLINEAR shared library by yourself.
+
+Depending on your use cases, you can choose between systemwide installation and
+local directory installation. Microsoft Visual C++ and other tools might be
+required for systemwide installation for windows.
+
+- Systemwide Installation:
+
+ To have a systemwide access to the interface, execute the following command:
+
+ > pip install -e .
+
+ Please note that you still have to keep the sources after the installation.
+
+ In addition, please DON'T use other commands such as
+
+ > python setup.py install
+
+ or
+
+ > pip install .
-On Unix systems, type
+- Local Directory Installation:
-> make
+ On Unix systems, type
-The interface needs only LIBLINEAR shared library, which is generated by
-the above command. We assume that the shared library is on the LIBLINEAR
-main directory or in the system path.
+ > make
-For windows, the shared library liblinear.dll is ready in the directory
-`..\windows'. You can also copy it to the system directory (e.g.,
-`C:\WINDOWS\system32\' for Windows XP). To regenerate the shared library,
-please follow the instruction of building windows binaries in LIBLINEAR README.
+ For windows, the shared library liblinear.dll is ready in the directory
+ `..\windows'. You can also copy it to the system directory (e.g.,
+ `C:\WINDOWS\system32\' for Windows XP). To regenerate the shared library,
+ please follow the instruction of building windows binaries in LIBLINEAR README.
Quick Start
===========