   && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg git \
   && apt-get clean \
   && rm -rf /var/lib/apt/lists/*
  
  COPY _requirements_base.txt /opt/
  RUN pip3 install --upgrade pip
  RUN pip3 --no-cache-dir install -r /opt/_requirements_base.txt && rm /opt/_requirements_base.txt
  
  WORKDIR "/srv"
  CMD ["/bin/bash"]
 
</s> remove COPY _requirements_base.txt /opt/
COPY requirements_nvidia.txt /opt/
 </s> add COPY ./requirements/_requirements_base.txt /opt/
COPY ./requirements/requirements_nvidia.txt /opt/ </s> remove         with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
 </s> add         with Popen(f"\"{sys.executable}\" -m pip freeze --local", shell=True, stdout=PIPE) as chk: </s> remove             requirements_file = os.path.join(pypath, req_file)
 </s> add             requirements_file = os.path.join(pypath, "requirements", req_file) </s> remove                     # parse_requirements can't handle git dependencies, so extract and then
                    # manually add to final list
                    if package and package.startswith("git+"):
                        git_requirements.append((package, []))
                        continue
 </s> add 
COPY ./requirements/_requirements_base.txt /opt/
   && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg git \
   && apt-get clean \
   && rm -rf /var/lib/apt/lists/*
  
COPY ./requirements/_requirements_base.txt /opt/
  RUN pip3 install --upgrade pip
  RUN pip3 --no-cache-dir install -r /opt/_requirements_base.txt && rm /opt/_requirements_base.txt
  
  WORKDIR "/srv"
  CMD ["/bin/bash"]
keep keep keep keep replace keep keep keep keep keep
 setup.py - python 3.9 support
    - move requirements files to dedicated folder
    - update all references to requirements files locations
    - setup.py: remove git requirements references
    - setup.py: allow running in python 3.9
    - windows/linux installers: default to python 3.9 environment
    - faceswap.py: cleaner python version check 
Dockerfile.cpu