2013-08-31 56 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選項來指定你必須寫訪問目標目錄。