Unofficial fasttext
Python 3.6, 3.7 and 3.8 pre-compiled wheel files for Windows.
Important Note: These downloads require that you first install Visual C++ Redistributable from Microsoft: vc_redist.x64.exe. Otherwise your Python code will crash when you try to use them.
See blog post for more info: https://blog.arcosta.co/fasttext-binaries-for-windows/
If you want to re-compile these yourself instead of using binaries you randomly downloaded off the internet, it is pretty easy. You just need to follow these steps:
- Install Visual Studio Community Edition with the "Desktop development with C++" workload selected.
- Install pybind11:
pip install pybind11
- Make sure you have wheel installed:
pip install wheel
- Clone fastText from git and check out the version you want to build:
git branch -b v0.9.1 0.9.1
- In the root folder of the fasttext code, run
python setup.py bdist_wheel
. That will write the wheel file to the ./dist/ subfolder. - You can then install the wheel file with pip or copy it to another computer to install there.