在OS X Lion中easy_install pip是否需要sudo? [英] sudo required for easy_install pip in OS X Lion?

查看:164
本文介绍了在OS X Lion中easy_install pip是否需要sudo?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从工作中的雪豹到家里的狮子装置.我不记得必须这样做:

I'm coming from Snow Leopard at work to a Lion installation at home. I do NOT remember having to:

sudo easy_install pip

狮子会需要吗?在执行此操作之前,我一直遇到错误,然后在此处结束了点子:

Is that required for Lion? I got errors until I did that, and pip ended up here:

[ some@computer ] ~ $ which pip
/usr/local/bin//pip

这是否意味着我将不得不sudo pip安装其他软件包?例如:

Does this mean that I'm going to have to sudo pip install other packages? e.g.:

sudo pip install virtualenv
sudo pip install virtualenvwrapper

我还应该注意,我正在使用单独安装的命令行工具来运行XCode 4.3.因此,我的OS X Lion卷上现在没有/Developer路径.

I should also note that I'm running XCode 4.3 with the new separate install of the command line tools. So I do NOT have a /Developer path right now on my OS X Lion volume.

推荐答案

是.通常,您须藤使用pip.您可以更改一堆权限,而不必这样做,但这可能会破坏各种事情.如果您想避免重新输入密码,请尝试打开

Yes. Generally you sudo to use pip. You could change a bunch of permissions and you may not have to but that could break all sorts of things. If you want to avoid re-typing your password try opening a

"sudo屏幕"会话.然后,您的Shell将以root用户身份登录,并且不会提示您输入密码. (使用sudo屏幕将使您无需再次输入sudo即可运行pip和其他管理命令)

"sudo screen" session first. Then your shell will be logged in as root and will not prompt for the password. (Using sudo screen will allow you to run pip and other admin commands without typing sudo again)

这篇关于在OS X Lion中easy_install pip是否需要sudo?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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