我刚刚升级到Ubuntu13.04 (beta),在使用pip将pyside安装到Virtualenv (python 2.7.4)时遇到了一个错误:
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...发布于 2013-04-18 06:52:31
我是pyside安装脚本的作者。我将在ubuntu13.04上测试构建脚本。您是使用32位版本还是64位版本?
更新1:修正了Ubuntu13.04的pyside构建脚本。您需要从git克隆最新的pyside安装程序,并构建如下(注意-qmake):
$ 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,因为我更喜欢做一次蛋,并在需要的时候安装多次。
发布于 2013-05-08 16:19:19
另一种方式是:
sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/ && pip install PySidehttps://stackoverflow.com/questions/16074801
复制相似问题