如何安装哪些程序需要“sudo"在虚拟环境中? [英] How to install which programs requires "sudo" in virtualenv?

查看:36
本文介绍了如何安装哪些程序需要“sudo"在虚拟环境中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 kivy,在 docs 它说:

I'm trying to install kivy, in the docs it says:

$ sudo apt-get install python-setuptools python-pygame python-opengl \
  python-gst0.10 python-enchant gstreamer0.10-plugins-good cython python-dev \
  build-essential libgl1-mesa-dev libgles2-mesa-dev
$ sudo easy_install kivy

但我不想使用 sudo 我喜欢在 virtualenv 中组织我的项目,所以如何在不使用 sudo 的情况下安装需求.除非我使用 sudo,否则 apt-get install 将无法工作.我在 pip 中找不到要求.例如,我想在 virtualenv 中安装 easy_install,该怎么做?

But I don't want to use sudo I like to keep my projects organized in virtualenv, so how install the requirements without using sudo. apt-get install won't work unless i use sudo. and i can't find the requirements in pip. Lets say i want to install easy_install in virtualenv for example, how to do that?

推荐答案

我不认为你可以在没有 sudo/root 访问权限的情况下安装 kivy 的依赖包.

I do not think you can get around installing kivy's dependent packages without sudo/root access.

安装它们后,请按照 Andrew 的答案中概述的步骤进行操作.

Once you have them installed, follow steps outlined in Andrew's answer.

这篇关于如何安装哪些程序需要“sudo"在虚拟环境中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆