Python3.3在Linux中找不到libpython3.3m.so(pip-3.3) [英] Python3.3 can't find libpython3.3m.so in linux (pip-3.3)

查看:557
本文介绍了Python3.3在Linux中找不到libpython3.3m.so(pip-3.3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用默认python3.2的ubuntu 12.10.但是我下载了python 3.3,因为它更加完善.当然,从那时起,我就安装了适用于3.3的模块的噩梦,因为python3软件包从突触安装到3.2目录.因此,我使用python 3.3安装了pip.现在我有了pip-3.3命令,太好了.但是,当我尝试"sudo pip-3.3 install PySide"时,我很快得到一个错误:错误:无法找到Python库/usr/lib/libpython3.3m.so".而且,当我运行"sudo pip install PySide"(2.7的命令)时,它就可以构建并安装并完美运行. Pyvenv和virtualenv都也会失败.但是我不会以非env的方式进行操作,只需将pyside安装到全局3.3 lib dir中即可.

I'm using ubuntu 12.10 with default python3.2. However I downloaded python 3.3 as its much more polished. Of course, since then I have a nightmare with installing modules for 3.3, as python3 packages from synaptic install to 3.2 dir. So, I installed pip using python 3.3. Now I have pip-3.3 command, great. But, when I tried "sudo pip-3.3 install PySide" I quickly got an error: "error: Failed to locate the Python library /usr/lib/libpython3.3m.so". What's more, when I run "sudo pip install PySide" (command for 2.7), it builded and installed and runs flawlessy. Pyvenv and virtualenv both fail too. But I wan't to do it non-env way,just install pyside to global 3.3 lib dir.

那么我该如何将PySide安装到python 3.3?我只是无法正常工作...看起来我将不得不使用默认的ubuntu python 3版本(此版本运行良好,无论是pip还是突触都可以正常工作),但是我喜欢使用最新的python每次发布都会变得越来越好.

So how can I install that PySide to python 3.3? I just can't get it to work... It looks like I will have to stick with default ubuntu python 3 version (this one runs great, everything works both from pip and synaptic), but I like to use newest python as it gets better and better with every release.

顺便说一句,如果那很重要,那么在该错误之前我也收到了以下警告: 未找到程序包初始化文件'PySide/ init .py"(或非常规文件)"和 找不到程序包初始化文件'pysideuic/ init .py"(或非常规文件)"

Btw, if that matters I also got following warning before that error: "package init file 'PySide/init.py' not found (or not a regular file)" and "package init file 'pysideuic/init.py' not found (or not a regular file)"

我从突触安装了完整的python3.3,包括pythoh3.3-dev,debug,lib等. 而且/usr/lib/x86_64-linux-gnu/libpython3.3m.so中存在动态python 3.3 lib,也许只是ubuntu的python3.3软件包很差,并且安装方向错误/没有做任何符号链接技巧?

I installed full python3.3 from synaptic, including pythoh3.3-dev, debug, lib etc. Everything. And that dynamic python 3.3 lib exist in /usr/lib/x86_64-linux-gnu/libpython3.3m.so, maybe just python3.3 package for ubuntu is poor and installs it in wrong direction/doesn't do any symlinks tricks?

推荐答案

请尝试使用此答案从源代码安装(PySide).下载pyside源码并从源码安装,请按照链接上的说明进行操作.

Please try this answer installing from source (PySide). Download pyside sources and install from source, follow the instructions on the link.

这篇关于Python3.3在Linux中找不到libpython3.3m.so(pip-3.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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