网站_部署
这是使用 Python 和flask 部署静态网站。
创建虚拟环境
注意 - pyenv 用于管理 python 版本
详情链接在这里
# set the version of python needed to deploy onto the hosted service using "pyenv"
$ pyenv versions ## list all the versions of python available in pyenv
$ pyenv local 3.8.10 # this will set the python version for the current folder
# Create a virtual environment using pipenv - this uses a pipfile rather than a requirement