Python 将烧瓶安装到我的OSX Marverick时出错

Python 将烧瓶安装到我的OSX Marverick时出错,python,flask,Python,Flask,我用的是Merverick OSX。我已经在我的计算机上安装了Python 3.3.3,我想安装Flask 当我在终端中输入这个时 $ sudo pip install virtualenv 它说找不到命令 所以我试试这个 $sudo easy_install virtualenv 终端向我显示了这个错误 error: can't create or remove files in install directory The following error occurred while t

我用的是Merverick OSX。我已经在我的计算机上安装了Python 3.3.3,我想安装Flask

当我在终端中输入这个时

$ sudo pip install virtualenv
它说找不到命令

所以我试试这个

$sudo easy_install virtualenv
终端向我显示了这个错误

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-    
373.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.

这些错误消息是什么意思?

我不在mac电脑中。但根据我糟糕的英语水平,以下是

您的帐户可能没有对此目录的写入权限?如果 安装目录是系统拥有的目录,您可能需要登录 作为管理员或使用“sudo su”的“root”帐户。如果您没有管理权限 访问此计算机时,您可能希望选择其他安装 目录,最好是PYTHONPATH环境中列出的目录 变数

这意味着您无权写入文件“/Library/Python/2.7/site-packages/test-easy-install-xxxx”。终端会告诉您使用root帐户进行安装。 对“/Library/Python/2.7/site packages/*”执行chmod a+x
因此,我希望它对您有用,请仔细阅读终端上的说明:)

如何使用root帐户进行安装?什么是根帐户?对不起,我对这件事很陌生。你能用这个命令吗:sudo su?对不起,伙计,我不熟悉mac:)在其他方面,您可以像这样更改目录模式:sudo chmod-R 755/Library/Python/2.7/site-packagesIt将安装到python2.7?我想将它与我的python 3.3一起使用。所以我必须在不同的文件夹里做,怎么做^^“我试过Tammarats MacBook Air:~Team$$sudo chmod-R 755/Library/Python/2.7/site-packages,它告诉我:chmod:cannot change file mode on/Library/Python/2.7/site-packages/README:Operation not permitted您是如何安装Python 3.3.3的?我从Python.org获得该文件并将其安装到我的应用程序文件夹中。然后我安装activeTCL就是这样。请帮助我,否则我必须重新安装整个OSX,因为我不知道如何解决此问题。您到底是如何安装的,下载了哪个文件?已解决,但可能出现了新问题?或者可能没有?>^”