It is recommended to install Textstat in a virtual environment for the project you're working on.
=== "poetry"
```
poetry add textstat
```
=== "pipenv"
```
pipenv install textstat
```
=== "pip"
```
pip install textstat
```
If you just want to use Textstat as a command line tool, you can install
it standalone in it's own dedicated virtual environment using pipx.
pipx install textstat
Install pipx if you haven't already.
Alternatively, you can install directly from source if you would prefer. This will
install the latest from main.
=== "poetry"
```
poetry add git+https://github.com/textstat/textstat.git
```
=== "pipenv"
```
pipenv install git+https://github.com/textstat/textstat.git
```
=== "pip"
```
pip install git+https://github.com/textstat/textstat.git
```
=== "pipx"
```
pipx install git+https://github.com/textstat/textstat.git
```
If you require a specific version or branch, you can specify the tag to use.
=== "main"
```
poetry add git+https://github.com/textstat/textstat.git@main
```
=== "dev"
```
poetry add git+https://github.com/textstat/textstat.git@dev
```
=== "version"
```
poetry add git+https://github.com/textstat/[email protected]
```