gpt4 book ai didi

python - 如何在没有 root 权限的情况下安装 python 3.x 和 2.y

转载 作者:行者123 更新时间:2023-12-04 02:00:45 28 4
gpt4 key购买 nike

我在一台没有 root 权限的共享机器上工作,但安装了 Python 2.y,但我想要两种 Python 版本,我也想调用 Python 2.y 只需键入 python(像往常一样) 并调用 Python 3.x,键入 python3。我知道这是可能的,因为在我的主要设备中(whit root 访问权限和 sudo 的魔力)我可以“选择”要使用的设备。

最佳答案

您可以安装pyenvpyenv installer script然后运行 ​​pyenv install 2.7.14pyenv install 3.6.3

更多文档是 here

关于python - 如何在没有 root 权限的情况下安装 python 3.x 和 2.y,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47466397/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com