计算机: Red Hat Enterprise Linux Server 6.3版(圣地亚哥)
我正在尝试从sourceforge为python 2.6.6 .Downloaded source安装PyQt4。
我会使用下面的命令安装它。
python configure.py
make && make install但是我的问题是我没有根access.How,我可以以非根用户的身份安装PyQt4吗?
发布于 2013-09-01 06:35:09
如果你输入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选项指定您对其具有写入访问权限的目标目录。
https://stackoverflow.com/questions/18553279
复制相似问题