python2.7安装失败,Pyside安装失败(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.

EDIT: Console Log for 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...

解决方案

I'm author of pyside setup scripts.

I will test the build scripts on ubuntu 13.04.

Are you using 32 or 64bit version ?

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

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

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

Regards

R.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值