简体   繁体   English

在没有 sudo 和 make 的情况下安装 Python 2.7.11

[英]Installing Python 2.7.11 without sudo and make

I'm doing a little project and I need to install a different version of python on a box on which I don't have superuser rights.我正在做一个小项目,我需要在我没有超级用户权限的盒子上安装不同版本的 python。 Already tried installing python to a directory for which I do have permissions, but I would still need to build it using make, which the box doesn't have installed.已经尝试将 python 安装到我有权限的目录,但我仍然需要使用 make 来构建它,而盒子没有安装。 Any ideas?有任何想法吗?

听起来你可能想使用pyenv来安装 python

Since you can run pip , you can install a virtual environment to play in. For that, I recommend virtualenvwrapper which is installable via pip install virtualenvwrapper .因为你可以运行pip ,你可以安装一个虚拟环境来玩。为此,我推荐virtualenvwrapper ,它可以通过pip install virtualenvwrapper

The docs on the linked site have more details on what you need to do to get it up and running.链接站点上的文档提供了有关启动和运行所需操作的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM