Installation
Last updated
Last updated
PythonRustNode
π Tokenizers is tested on Python 3.5+.
You should install π Tokenizers in a . If youβre unfamiliar with Python virtual environments, check out the . Create a virtual environment with the version of Python youβre going to use and activate it.
π Tokenizers can be installed using pip as follows:
Copied
To use this method, you need to have the Rust language installed. You can follow for more information.
If you are using a unix based OS, the installation should be as simple as running:
Copied
Or you can easiy update it with the following command:
Copied
Once rust is installed, we can start retrieving the sources for π Tokenizers:
Copied
Then we go into the python bindings folder:
Copied
Copied
Then you can have π Tokenizers compiled and installed in your virtual environment with the following command:
Copied
At this point you should have your already activated. In order to compile π Tokenizers, you need to install the Python package setuptools_rust
: