Skip to content

Installation

Prerequisites

F2 can be used alone or installed into an existing project. In both cases, you can select a different version to install using the following command:

sh
$ pip install f2              # Latest version
$ pip install f2==x.x.x       # Specified version
$ pip install 'f2>=x.x.x'     # Minimum version
sh
$ pip3 install f2              # Latest version
$ pip3 install f2==x.x.x       # Specified version
$ pip3 install 'f2>=x.x.x'     # Minimum version
sh
$ pip3 install f2              # Latest version
$ pip3 install f2==x.x.x       # Specified version
$ pip3 install 'f2>=x.x.x'     # Minimum version
Got a dependency or other warning?

If you are prompted with a python or pip version error, try updating to the required version.

If you have a slow network environment and cannot access the official mirrors properly. Please use a third-party mirror source that can be accessed properly.

sh
$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple f2
sh
$ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple f2
sh
$ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple f2

Tip

F2 is an asynchronous library, and developers should carefully read the documentation before calling methods.

For more details, see advance-guide.

Released under the Apache-2.0 license.