2013-04-18 83 views
2

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

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

任何人有任何想法?我已经尝试过以前的版本以及开发版本,但仍然没有运气。

编辑:控制台日志post_install

(monster)[email protected]:~/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... 
+0

您使用的是测试Ubuntu版本,所以并非所有事情都能顺利进行。 'ls -1/usr/lib/libpython2.7.so *'输出的是什么? – Blender 2013-04-18 05:04:20

+0

ls:无法访问/usr/lib/libpython2.7.so*:没有这样的文件或目录 – moreisee 2013-04-18 05:05:53

+0

要添加,安装libpython2.7,该文件不存在。我发现的最接近的是:libpyglib-2.0-python2.7.so.0(它确实存在)。 – moreisee 2013-04-18 05:25:58

回答

6

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

更新1: 修复了Ubuntu 13.04的pyside构建脚本。 你需要克隆从混帐回购协议的最新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.

+0

使用64位。我升级了,所以这不是全新的安装。 (从12.10) – moreisee 2013-04-18 07:16:35

+0

我将使用全新安装。在12.10上安装好了吗? – rlacko 2013-04-18 07:21:39

+0

我也试图安装到virtualenv(使用virtualenvwrapper)。 去看看我是否可以安装没有virtualenv(将报告回来)。 – moreisee 2013-04-18 07:22:30

1

另一种方式:

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