找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 249|回复: 0

Windows系统下Python多版本管理——Pyenv安装及使用

[复制链接]

2万

主题

162

回帖

18万

积分

管理员

积分
184954
发表于 2024-7-15 11:37:55 | 显示全部楼层 |阅读模式 IP:山东省济南市 联通

登录后更精彩...O(∩_∩)O...

您需要 登录 才可以下载或查看,没有账号?立即注册

×
Windows系统下Python多版本管理——Pyenv安装及使用

        1:打开命令行,输入 pip install pyenv-win --target D:\dev\pyenv  (此处E:\software\pyenv是自己的安装目录,不存在会自动创建 )


       2:接着配置环境变量:我的电脑—>属性—>高级系统设置—>环境变量—>系统环境变量

[Bash shell] 纯文本查看 复制代码
新建变量:pyenv

路径:d:/dev/pyenv

       3:再到系统环境变量里点击path后新建:

[AppleScript] 纯文本查看 复制代码
%pyenv%\bir
%pyenv%shims




命令
用法
local         Set or show the local application-specific Python version
                global                         Set or show the global Python version
shell          Set or show the shell-specific Python version
install          Install 1 or more versions of Python
uninstall         Uninstall 1 or more versions of Python
update        Update the cached version DB
rehash        Rehash pyenv shims (run this after switching Python versions)
vname        Show the current Python version
version         Show the current Python version and its origin
version-name        Show the current Python version
versions        List all Python versions available to pyenv
exec          Runs an executable by first preparing PATH so that the selected Python
which         Display the full path to an executable
whence         List all Python versions that contain the given executable
————————————————

                            版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
                        
原文链接:https://blog.csdn.net/weixin_42730336/article/details/120980267



from: Windows系统下Python多版本管理——Pyenv安装及使用-CSDN博客
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|哩布大模型|Civitai大模型|IP定位|图反推|站长素材|deepseek|即梦视频|阿狗工具|花瓣网|pinterest|php手册|宝塔文档|CyberChef|猫捉鱼铃|手机版|小黑屋|下载狗|IPS|在线工具|分享屋 ( 鲁ICP备2021028754号 )

GMT+8, 2025-5-9 22:16

Powered by 分享屋 X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表