PEP405 规范流程图

PEP405引入了轻量级虚拟环境机制,允许每个环境拥有独立的site directories,可隔离于系统site directories。环境有自己的Python二进制文件,支持不同Python版本,并能独立安装Python包,但共享标准库。提案重点在于如何查找Python标准库和头文件位置,以及确定site-packages目录的流程。
摘要由CSDN通过智能技术生成

PEP405 提出为Python增加一个自带site directories的轻量级虚拟环境(virtual environments)机制。列出PEP405英文部分摘要

This PEP proposes to add to Python a mechanism for lightweight “virtual environments” with their own site directories, optionally isolated from system site directories. Each virtual environment has its own Python binary (allowing creation of environments with various Python versions) and can have its own independent set of installed Python packages in its site directories, but shares the standard library with the base installed Python.

该提案围绕寻找sys.prefix 的值展开,新添了一步以寻找pyvenv.cfg 文件判断sys.prefix 值的操作规范。下面就绘制出流程图:

Created with Raphaël 2.1.0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值