Prerequisites¶
Windows, Linux or MacOS
Python 3+
Tensorflow 2+
Installation¶
Prepare environment¶
The very first thing to install easyrec is to ensure that Python is installed. If not, it is recommended to use Anaconda instead of pure Python.
Create a conda virtual environment.
conda create -n easyrec python=3.7
Activate the virtual environment.
conda activate easyrec
Install easyrec¶
PyPI¶
The easiest way to install easyrec is PyPI. You can directly run the following command to install:
pip install easyrec-python
Source¶
In addition, you can also install easyrec from source. First, locate the directory that you want to keep codes:
cd /path/for/codes/
Next, clone the source codes from Github:
git clone git@github.com:xu-zhiwei/easyrec.git
Finally, install easyrec in your Python environment:
cd easyrec
pip install requirements.txt
python setup.py install # or "python setup.py develop" for developers who wants to modify the codes
Verification¶
After installation, you can verify it by the following:
Switch to Python environment.
python
Verify installation.
import easyrec
The above code is supposed to run successfully upon you finish installation.