use https://github.com/pyenv/pyenv
pre-install https://github.com/pyenv/pyenv/wiki
- pre-install Ubuntu/Debian/Mint:
| import glob | |
| import os | |
| import shutil | |
| import gradio as gr | |
| inpath = "./fapiao-530/images/*.jpg" | |
| out_dikou_path = "./fapiao-530/images/dikou" | |
| out_fapiao_path = "./fapiao-530/images/fapiao" |
use https://github.com/pyenv/pyenv
pre-install https://github.com/pyenv/pyenv/wiki
| [flake8] | |
| max-line-length = 88 | |
| ignore = E501, E203, W503 |
| # ARG BASE_TAG=3.7-stretch | |
| ARG BASE_TAG=3.8-buster | |
| FROM python:${BASE_TAG} | |
| ENV PYPI_URL=https://pypi.python.org/ | |
| ENV PYPI_INDEX_URL=https://pypi.douban.com/simple/ | |
| RUN useradd -m appuser | |
| USER appuser |
| version: 1.1.0.build v{build} | |
| skip_tags: true | |
| init: | |
| - cmd: ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON% | |
| environment: | |
| VCPKG_PATH: C:/tools/vcpkg/installed | |
| matrix: | |
| - platform: x86 | |
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
| PYTHON: C:\\Python35 |