            python -m pip install --upgrade pip
            pip install flake8 pylint mypy pytest pytest-mock pytest-xvfb wheel
            pip install types-attrs types-cryptography types-pyOpenSSL types-PyYAML types-setuptools
            pip install -r ./requirements/requirements_${{ matrix.backend }}.txt
        - name: Lint with flake8
          run: |
            # stop the build if there are Python syntax errors or undefined names
            flake8 . --select=E9,F63,F7,F82 --show-source
            # exit-zero treats all errors as warnings.
 
</s> remove RUN apt-get update -qq -y \
 && apt-get install -y software-properties-common \
 && add-apt-repository -y ppa:jonathonf/ffmpeg-4 \
 && apt-get update -qq -y \
 && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg git \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
 </s> add RUN apt-get update -qq -y
RUN apt-get upgrade -y
RUN apt-get install -y libgl1 libglib2.0-0 python3 python3-pip python3-tk git </s> remove           FACESWAP_BACKEND="${{ matrix.backend }}" KERAS_BACKEND="${{ matrix.kbackend }}" py.test -v tests/;
 </s> add           FACESWAP_BACKEND="${{ matrix.backend }}" py.test -v tests/; </s> remove #install python3.8
RUN apt-get update
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa -y
RUN apt-get update
RUN apt-get install python3.8 -y 
RUN apt-get install python3.8-distutils -y
RUN apt-get install python3.8-tk -y
RUN apt-get install curl -y
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.8 get-pip.py
RUN rm get-pip.py
 </s> add ENV DEBIAN_FRONTEND=noninteractive
ENV FACESWAP_BACKEND nvidia </s> remove # Packages that are explicitly required for setup.py
_INSTALLER_REQUIREMENTS: List[Tuple[str, str]] = [("pexpect>=4.8.0", "!Windows"),
                                                  ("pywinpty==2.0.2", "Windows")]
 </s> add  </s> remove _CONDA_MAPPING: Dict[str, Tuple[str, str]] = {
    # "opencv-python": ("opencv", "conda-forge"),  # Periodic issues with conda-forge opencv
 </s> add _CONDA_MAPPING: dict[str, tuple[str, str]] = {
      - name: List installed packages
        run: pip freeze
            python -m pip install --upgrade pip
            pip install flake8 pylint mypy pytest pytest-mock pytest-xvfb wheel
            pip install types-attrs types-cryptography types-pyOpenSSL types-PyYAML types-setuptools
            pip install -r ./requirements/requirements_${{ matrix.backend }}.txt
      - name: List installed packages
        run: pip freeze
        - name: Lint with flake8
          run: |
            # stop the build if there are Python syntax errors or undefined names
            flake8 . --select=E9,F63,F7,F82 --show-source
            # exit-zero treats all errors as warnings.
keep keep keep add keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
.github/workflows/pytest.yml