登录 注册

pyenv-virtualenv

去点 Star
内容创作与媒体工具开发者工具效率与办公工具
6,727
Stars
430
Forks
69
Watchers
90
Open Issues
MIT
许可证
Shell
语言
2013-02-18
创建时间
2026-11-11
最近更新

项目能做什么

用于管理 virtualenv 虚拟环境的 pyenv 插件。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# pyenv-virtualenv

[![Join the chat at https://gitter.im/yyuu/pyenv-virtualenv](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/yyuu/pyenv-virtualenv?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://travis-ci.org/pyenv/pyenv-virtualenv.svg?branch=master)](https://travis-ci.org/pyenv/pyenv-virtualenv)

pyenv-virtualenv is a [pyenv](https://github.com/pyenv/pyenv) plugin
that provides features to manage virtualenvs and conda environments
for Python on UNIX-like systems.

(NOTICE: If you are an existing user of [virtualenvwrapper](http://pypi.python.org/pypi/virtualenvwrapper)
and you love it, [pyenv-virtualenvwrapper](https://github.com/pyenv/pyenv-virtualenvwrapper) may help you
(additionally) to manage your virtualenvs.)

## Installation

### Installing as a pyenv plugin

This will install the latest development version of pyenv-virtualenv into
the `$(pyenv root)/plugins/pyenv-virtualenv` directory.

**Important note:**  If you installed pyenv into a non-standard directory, make
sure that you clone this repo into the 'plugins' directory of wherever you
installed into.

From inside that directory you can:
 - Check out a specific release tag.
 - Get the latest development release by running `git pull` to download the
   latest changes.

💡 **WSL note:** If you're using WSL, we recommend setting Git to use Unix-style line endings to prevent script execution errors:

```sh
git config --global core.autocrlf input
```

1. **Check out pyenv-virtualenv into plugin directory**

    ```bash
    git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
    ```

    For the Fish shell:

    ```fish
    git clone https://github.com/pyenv/pyenv-virtualenv.git (pyenv root)/plugins/pyenv-virtualenv
    ```

2. (OPTIONAL) **Add `pyenv virtualenv-init` to your shell** to enable auto-activation of virtualenvs. This is entirely optional but pretty useful. See "Activate virtualenv" below.

    ```bash
    echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
    ```

    **Fish shell note**:  Add this to your `~/.config/fish/config.fish`

    ```fish
    status --is-interactive; and pyenv virtualenv-init - | source
    ```

    **Zsh note**: Modify your `~/.zshrc` file instead of `~/.bashrc`.
    
3. **Restart your shell to enable pyenv-virtualenv**

    ```bash
    exec "$SHELL"
    ```


### Installing with Homebrew (for macOS users)

macOS users can install pyenv-virtualenv with the
[Homebrew](https://brew.sh) package manager.
This will give you access to the `pyenv-virtualenv` command. If you have pyenv
installed, you will also be able to use the `pyenv virtualenv` command.

*This is the recommended method of installation if you installed pyenv
 with Homebrew.*

```sh
brew install pyenv-virtualenv
```

Or, if you would like to install the latest development release:

```sh
brew install --HEAD pyenv-virtualenv
```

After installation, you'll still need to do
[Pyen
阅读完整原文

项目深度分析 AI 生成

Python 环境与依赖可视化桌面管理客户端 (GUI for pyenv/virtualenv)

产品构想针对初中级开发者或数据科学家,开发一款跨平台的轻量 GUI/菜单栏应用,可视化管理 pyenv 版本、虚拟环境、磁盘占用清理与环境自动修复。
核心功能可视化的 pyenv/virtualenv 增删改查;一键释放冗余虚拟环境磁盘空间;环境依赖健康度检测与损坏修复;与 VS Code/PyCharm 一键环境链接。
目标用户使用 macOS/Linux 的初中级 Python 开发者、高校科研人员及数据分析师(AI推测)。
难度/周期中等 · 1-2个月 · 成本:开发机器、跨平台打包签名费用(如 Apple 开发者账号年费 99 美元/年)
收费模式Freemium 模式(免费基础管理,高级功能如磁盘深度清理、跨机环境导入导出买断,定价 $9.9-$19.9/人)。
竞争风险现代 IDE(如 VS Code、Cursor、PyCharm)已内置较为完善的虚拟环境发现与切换机制,纯独立管理工具受众面受限。
依据 AI推测

团队开发机/云端容器环境自动化标准化 CLI

产品构想基于 pyenv 和 virtualenv 的环境规格,构建团队级环境配置同步工具,支持将 .python-version 与依赖锁文件无缝下发并预热到本地开发环境与 CI 中。
核心功能统一环境定义模板(整合 pyenv-virtualenv、系统依赖);一键拉起与修复损坏的环境;跨团队环境配置审计与漏洞依赖扫描。
目标用户多项目并存的软件工程团队、外包团队技术负责人、DevOps 工程师(AI推测)。
难度/周期较高 · 2-3个月 · 成本:极低(主要为自建测试 CI/服务器成本)
收费模式向企业/团队提供席位制订阅(按开发者人头每月 $5-$10),或与现有云开发环境(Devbox 等)打包售卖支持服务。
竞争风险生态面临 Docker/Devcontainer 和 Nix/uv 等现代化环境工具的直接挤压,替换成本高且市场认知陈旧。
依据 尚需验证的假设

Python 开发环境排错与性能调优咨询/配套套件

产品构想围绕 pyenv/virtualenv 在 macOS (Apple Silicon)/WSL 环境下的编译错误、C扩展编译依赖缺失、多架构冲突提供专项一键修复脚本库与商业技术支持服务。
核心功能一键修复 OpenSSL/readline 编译报错脚本集;多架构(x86 vs arm64)环境隔离工具;企业/机构专属定制支持与答疑。
目标用户使用 M1/M2/M3 Mac 或 Windows WSL2 的传统行业数字化研发团队、Python 新手培训机构(AI推测)。
难度/周期低 · 2-4周 · 成本:极低(主要为维护脚本库的时间成本)
收费模式Gumroad/淘宝/微信小店数字商品销售(售价 $5-$20 或 99-199 元);企业单次交付环境支持按时薪计费。
竞争风险问题解决方案碎片化分布在 GitHub Issues 和 StackOverflow,付费意愿极低且难以规模化扩张。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
pyenv/pyenv-virtualenvwrapper 中文介绍暂未生成
an alternative approach to manage virtualenvs from pyenv.
677 Shell
alefpereira/pyenv-pyright 中文介绍暂未生成
Setup a pyenv virtualenv for microsoft pyright in the pyrigh
158 Shell
lambdalisue/vim-pyenv 中文介绍暂未生成
Activate the versions and the virtualenvs of pyenv within a
107 Vim script
markosamuli/ansible-pyenv 中文介绍暂未生成
Ansible role to install pyenv on Ubuntu or macOS development
62 Shell
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2013-02-18,近 30 天仍在推送,发布过 17 个 Release
社区活跃Star 6,727 / Fork 430 / Issue 90(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。