Pyside安装失败(Python 2.7.4) [英] Pyside install fails (Python 2.7.4)

查看:248
本文介绍了Pyside安装失败(Python 2.7.4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级到Ubuntu 13.04(测试版),尝试使用pip将pyside安装到Virtualenv(python 2.7.4)中时出现错误:

I just upgraded to Ubuntu 13.04 (beta) and I'm getting an error when trying to install pyside into a Virtualenv (python 2.7.4) using pip:

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

有人有什么想法吗?我已经尝试过以前的版本以及开发版本,仍然没有运气.

Anyone have any ideas? I've tried previous versions as well as the dev version, still no luck.

安装后的控制台日志

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

推荐答案

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

I'm author of pyside setup scripts. I will test the build scripts on ubuntu 13.04. Are you using 32 or 64bit version ?

更新1 : 修复了Ubuntu 13.04的pyside构建脚本. 您需要从git repo克隆最新的pyside-setup并进行如下构建(注意--qmake参数):

Update 1: Fixed the pyside build scripts for Ubuntu 13.04. You need to clone the latest pyside-setup from git repo and build as follows (note --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发行版:

and then install the PySide distribution as follows:

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

我没有使用pip,因为我更喜欢一次构建鸡蛋并根据需要安装多次 问候 R.

I have not used pip because i prefer to build the egg once and install many times as needed Regards R.

这篇关于Pyside安装失败(Python 2.7.4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆