Pyside安装失败(Python的2.7.4)(Pyside install fails (Pyt

2019-08-31 10:44发布

我刚刚升级到Ubuntu 13.04(测试版),并试图pyside安装到VIRTUALENV(蟒蛇2.7.4)使用PIP时,我得到一个错误:

error: Failed to locate the Python library /usr/lib/libpython2.7.so.1

有人有主意吗? 我试过以前的版本,以及开发人员版,仍然没有运气。

编辑:控制台日志post_install

(monster)tony@tonyubuntu:~/Downloads/pyside-setup$ python pyside_postinstall.py -install
PySide package found in /home/tony/Downloads/pyside-setup/PySide...
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtUiTools.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtCore.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtTest.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtHelp.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtXml.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtSql.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtGui.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/shiboken to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtDeclarative.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtSvg.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtNetwork.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtScriptTools.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtScript.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtWebKit.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/phonon.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtXmlPatterns.so to /home/tony/Downloads/pyside-setup/PySide.
Patched rpath in /home/tony/Downloads/pyside-setup/PySide/QtOpenGL.so to /home/tony/Downloads/pyside-setup/PySide.
PySide package successfully installed in /home/tony/Downloads/pyside-setup/PySide...

Answer 1:

我pyside安装脚本的作者。 我将在Ubuntu 13.04测试构建脚本。 您正在使用32位或64位版本?

更新1:修正了pyside构建脚本的Ubuntu 13.04。 你需要从克隆git代码库的最新pyside,设置并建立如下(注意--qmake PARAM):

$ git clone https://github.com/PySide/pyside-setup.git pyside-setup
$ cd pyside-setup
$ python setup.py bdist_egg --qmake=/usr/bin/qmake-qt4

然后安装PySide分布如下:

$ sudo easy_install dist/PySide-1.1.3dev-py2.7.egg
$ sudo python pyside_postinstall.py -install

我没有使用过PIP因为我宁愿一旦建立卵子和安装根据需要多次问候R.



Answer 2:

其他方式:

sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/ && pip install PySide


文章来源: Pyside install fails (Python 2.7.4)