简体   繁体   English

可以使用“easy_install”安装 django-rosetta 包

[英]Can install django-rosetta package using "easy_install"

I have django 1.2.4, Python 2.6.6 and latest osqa[july2012] installed on bluehost.我在 bluehost 上安装了 django 1.2.4、Python 2.6.6 和最新的 osqa[july2012]。 I would like to translate the osqa app[works fine] using rosetta.我想使用 rosetta 翻译 osqa 应用程序[工作正常]。 I am using terminal on mac with ssh connection.我在带有 ssh 连接的 mac 上使用终端。

osqa is here osqa 在这里

 ~/.local/lib/python2.6/site-packages/osqa/

When I want to install rosetta I run easy_install django-rosetta and I get the following error:当我想安装 rosetta 时,我运行easy_install django-rosetta并收到以下错误:

    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 30] 
Read-only file system: '/usr/lib/python2.6/site-packages/test-easy-install-28753.write-test'The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:/usr/lib/python2.6/site-packages/

How can I make it writable?我怎样才能让它可写? The installation of osqa, django and python went smoothly but rosetta just doesnt want. osqa、django 和 python 的安装很顺利,但 rosetta 就是不想要。 I have ran the easy_install django-rosetta in the root dir and in site-packages dir.我在根目录和站点包目录中运行了easy_install django-rosetta

In the long run you're much better off using virtualenv从长远来看,你最好使用virtualenv

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

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