2013-08-31 57 views
0

机:红帽企业Linux服务器版本6.3(圣地亚哥)安装PyQt4的非根

我试图安装PyQt4为.Downloaded其source从SourceForge蟒蛇2.6.6

我会安装它使用以下命令。

python configure.py 
make && make install 

但我的问题是,我没有root访问权限。如何安装PyQt4作为非root用户?

回答

1

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

... 
    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选项来指定你必须写访问目标目录。