Pipenv ###### * Pipenv is a Python virtualenv management tool that supports a multitude of systems and nicely bridges the gaps between pip, python (using system python, pyenv or asdf) and virtualenv. Linux, macOS, and Windows are all first-class citizens in pipenv. * GitHub: https://github.com/pypa/pipenv * 官网: https://pipenv.pypa.io/en/latest/ * 旨在将所有打包世界的精华引入 Python 世界的项目。它将 ``Pipfile``, ``pip`` 和 ``virtualenv`` 整合到一个工具链中。它可以自动导入 requirements.txt,还可以使用 safety 检查 Pipfile 中的 CVE。 安装:: pip install --user pipenv 使用 ==== 安装包:: pipenv install requests => 自动生成下面2个文件: Pipfile Pipfile.lock 运行:: pipenv run python main.py Pipfile文件 =========== 内容:: [[source]] url = "http://mirrors.tencentyun.com/pypi/simple" verify_ssl = false name = "pip_conf_index_global" [packages] requests = "*" [dev-packages] [requires] python_version = "3.10" micropipenv =========== * https://github.com/thoth-station/micropipenv * micropipenv 用于 pip 的轻量级包装器,支持 requirements.txt、Pipenv 和 Poetry 锁定文件,或将它们转换为 pip-tools 兼容的输出。专为容器化 Python 应用程序而设计,但不限于它们。