0

マシン: Red Hat Enterprise Linux Server リリース 6.3 (サンティアゴ)

PyQt4Python 用にインストールしようとしています2.6.6。sourceforgeからソースをダウンロードしました。

次のコマンドを使用してインストールします。

python configure.py
make && make install

しかし、私の問題は、root アクセス権がないことです。root 以外のユーザーとして PyQt4 をインストールするにはどうすればよいですか?

4

1 に答える 1

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]
...

実行時に、、、およびオプションを使用して-b、書き込みアクセス権を持つターゲット ディレクトリを指定します。-d-p-vconfigure.py

于 2013-08-31T22:35:08.840 に答える