前几天,我使用以下命令在Kubuntu12.10下安装了pyside:
sudo add-apt-repository ppa:pyside
sudo apt-get update
sudo apt-get install python-pyside那时一切都很顺利。我试图将已安装的文件移动到服务器上,这是我在所有计算机上的PYTHONPATH的一部分,但后来出现了一些主机应用程序的问题,因此我再次删除了这些文件,并在本地计算机上运行了该文件:
sudo apt-get purge python-pyside其次是:
sudo apt-get autoremove现在,我试图通过重新开始重新安装PySide (S.top)。这是安装程序的输出:
sudo apt-get install python-pyside
[sudo] password for frank:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-pyside.phonon python-pyside.qtdeclarative python-pyside.qtgui python-pyside.qthelp python-pyside.qtnetwork python-pyside.qtopengl
python-pyside.qtscript python-pyside.qtsql python-pyside.qtsvg python-pyside.qttest python-pyside.qtuitools python-pyside.qtwebkit
python-pyside.qtxml
The following NEW packages will be installed:
python-pyside python-pyside.phonon python-pyside.qtdeclarative python-pyside.qtgui python-pyside.qthelp python-pyside.qtnetwork
python-pyside.qtopengl python-pyside.qtscript python-pyside.qtsql python-pyside.qtsvg python-pyside.qttest python-pyside.qtuitools
python-pyside.qtwebkit python-pyside.qtxml
0 upgraded, 14 newly installed, 0 to remove and 433 not upgraded.
Need to get 0 B/5,137 kB of archives.
After this operation, 18.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package python-pyside.qtgui.
(Reading database ... 126047 files and directories currently installed.)
Unpacking python-pyside.qtgui (from .../python-pyside.qtgui_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.phonon.
Unpacking python-pyside.phonon (from .../python-pyside.phonon_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtnetwork.
Unpacking python-pyside.qtnetwork (from .../python-pyside.qtnetwork_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtdeclarative.
Unpacking python-pyside.qtdeclarative (from .../python-pyside.qtdeclarative_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qthelp.
Unpacking python-pyside.qthelp (from .../python-pyside.qthelp_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtopengl.
Unpacking python-pyside.qtopengl (from .../python-pyside.qtopengl_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtscript.
Unpacking python-pyside.qtscript (from .../python-pyside.qtscript_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtsql.
Unpacking python-pyside.qtsql (from .../python-pyside.qtsql_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtsvg.
Unpacking python-pyside.qtsvg (from .../python-pyside.qtsvg_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qttest.
Unpacking python-pyside.qttest (from .../python-pyside.qttest_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtxml.
Unpacking python-pyside.qtxml (from .../python-pyside.qtxml_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtuitools.
Unpacking python-pyside.qtuitools (from .../python-pyside.qtuitools_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.qtwebkit.
Unpacking python-pyside.qtwebkit (from .../python-pyside.qtwebkit_1.1.1-3_amd64.deb) ...
Selecting previously unselected package python-pyside.
Unpacking python-pyside (from .../python-pyside_1.1.1-3_all.deb) ...
Setting up python-pyside.qtgui (1.1.1-3) ...
Setting up python-pyside.phonon (1.1.1-3) ...
Setting up python-pyside.qtnetwork (1.1.1-3) ...
Setting up python-pyside.qtdeclarative (1.1.1-3) ...
Setting up python-pyside.qthelp (1.1.1-3) ...
Setting up python-pyside.qtopengl (1.1.1-3) ...
Setting up python-pyside.qtscript (1.1.1-3) ...
Setting up python-pyside.qtsql (1.1.1-3) ...
Setting up python-pyside.qtsvg (1.1.1-3) ...
Setting up python-pyside.qttest (1.1.1-3) ...
Setting up python-pyside.qtxml (1.1.1-3) ...
Setting up python-pyside.qtuitools (1.1.1-3) ...
Setting up python-pyside.qtwebkit (1.1.1-3) ...
Setting up python-pyside (1.1.1-3) ...但是,唯一安装的是/usr/lib/python2.7/dist包中的一些编译插件(*.so)。包文件夹中没有init.py等(就像第一次一样)。当然,我无法导入PySide。
我茫然不知所措,任何帮助都将不胜感激!
谢谢,弗兰克
发布于 2013-08-30 12:34:57
我试图将已安装的文件移到服务器上,将其转移到一个集中的位置。
你不能那样做!当然可以,但是在Linux发行版上,它通过包管理器安装了它的程序和实用程序,您所做的一切都是完全错误的。
系统通过包管理器跟踪已安装的文件。当您手动将这些文件移动到其他位置时,您会严重损坏一些东西。
我怀疑您已经移动了其他文件,这些文件不是由那些pyside软件包单独安装的。如果您已经移动了通过其他包安装的文件,那么您也破坏了这些包。
尝试彻底清除所有与python相关的包--不仅仅是与pyside相关的包--并重新安装它们。为了所有美好的爱,请把它们放在包维护人员放置它们的地方!:)
如果您希望自定义安装Python和Pyside等,那么您唯一的其他选项是下载源代码并从这些源代码中配置/编译/安装。
https://stackoverflow.com/questions/18480925
复制相似问题