Install
=======

The fingerprints in 0.6 on Windows are all wrong, you should update to 0.7 if you are on
Windows.

Only Python 3.9 and above are supported. Python 3.8 has reached its end of life.

Via pip
------

The simplest way is to install from PyPI:

.. code-block::

    pip install curl_cffi --upgrade

We have sdist(source distribution) and bdist(binary distribution) on PyPI. This should
work on Linux, macOS and Windows out of the box.

If it does not work on you platform, you may need to compile and install `curl-impersonate`
first and set some environment variables like `LD_LIBRARY_PATH`.

Beta versions
------------

To install beta releases:

.. code-block::

    pip install curl_cffi --upgrade --pre

Note the ``--pre`` option here means pre-releases.


Latest
------

To install the latest unstable version from GitHub:

.. code-block::

    git clone https://github.com/lexiforest/curl_cffi/
    cd curl_cffi
    make preprocess
    pip install .

Or you can download the wheels from github actions artifacts.