...
- Install the downloaded
whl
file using pip:pip install squirro.toolbox-VERSION.compiled-py2-none-any.whl
Dependencies (Troubleshooting)
Especially on Windows, you may encounter the following error when installing:
Code Block | ||
---|---|---|
| ||
…
copying Levenshtein\_levenshtein.h -> build\lib.win32-2.7\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
----------------------------------------
Command … failed with error code 1 in …\python-levenshtein\ |
This is because this dependency is a binary package that has be compiled. Christoph Golke maintains a great resource where he provides pre-compiled packages, so that you do not have to go through the hassle of setting up the right Python compilation environment locally. For any dependency that fails (python-levenshtein in this example) follow this process:
- Go to Unofficial Windows Binaries for Python Extension Packages
- Find the package you are looking for (python-levenshtein in the example)
- Download the
cp27
package with the correct architecture (win32 or amd64, depending on your Python installation) - this will download awhl
file - Install the downloaded file with pip:
pip install ….whl
- Try the Squirro Toolbox installation again (see above)
Usage
The Squirro toolbox contains a number of command line applications, that are used to work with a Squirro cluster. For example the Data Loader, which is used to index data in Squirro.
...