-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
The machine should satisfy the requirements below before installing elit. If you installed the requirements below, you can skip next part of setup machine environment.
- python > 3.4
In this section, all the installation command execute
sudo apt-get -y update
sudo apt-get -y install python3-pip python-dev build-essential
On Mac OS, please install homebrew first.
brew update
brew install python3
There are many ways to start a python and install python package. To keep it simple, I use virtualenv to initialize a environment come with python 3 and use pip as my python package management tools.
First of all, update your pip of python 3 to latest version:
pip3 install --upgrade pip
Create an virtualenv with python 3. env
is your environment name, you can change it as you want. However, for simplicity, I use env
in the rest of part. For much more usage, please check the document.
virtualenv -p python3 env
Activate your virtualenv
source env/bin/activate
After you activate your virtualenv, you should your environment name in the starting of your command line, such as
(env) $
Let's assume your are running your python in the virtualenv, so I don't put the prefix env
anymore.
Because of fasttext, cython are required and installed before we install elit. Since we're running python 3 in the virtualenv, we can just use pip instead of pip3.
pip install cython
Now, we can install elit!
pip install elit
If you have any question or want to report bugs, please let us know on github issues.
Thank you.