首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >以非根用户身份安装PyQt4

以非根用户身份安装PyQt4
EN

Stack Overflow用户
提问于 2013-09-01 06:10:54
回答 1查看 1.1K关注 0票数 0

计算机: Red Hat Enterprise Linux Server 6.3版(圣地亚哥)

我正在尝试从sourceforge为python 2.6.6 .Downloaded source安装PyQt4

我会使用下面的命令安装它。

代码语言:javascript
运行
复制
python configure.py
make && make install

但是我的问题是我没有根access.How,我可以以非根用户的身份安装PyQt4吗?

EN

回答 1

Stack Overflow用户

发布于 2013-09-01 06:35:09

如果你输入python configure.py --help,你会得到几个选项:

代码语言:javascript
运行
复制
...
  Installation:
    -b DIR, --bindir=DIR
                        where pyuic4, pyrcc4 and pylupdate4 will be installed
                        [default: /usr/bin]
    -d DIR, --destdir=DIR
                        where the PyQt4 Python package will be installed
                        [default: /usr/lib/python2.7/dist-packages]
    -p DIR, --plugin-destdir=DIR
                        where any plugins will be installed [default:
                        QTDIR/plugins]
    --no-sip-files      disable the installation of the .sip files [default:
                        enabled]
    -v DIR, --sipdir=DIR
                        where the PyQt4 .sip files will be installed [default:
                        /usr/share/sip]
...

在运行configure.py时使用-b-d-p-v选项指定您对其具有写入访问权限的目标目录。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18553279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档