简体   繁体   English

Python3.3在Linux(pip-3.3)中找不到libpython3.3m.so

[英]Python3.3 can't find libpython3.3m.so in linux (pip-3.3)

I'm using ubuntu 12.10 with default python3.2. 我正在使用默认python3.2的ubuntu 12.10。 However I downloaded python 3.3 as its much more polished. 但是我下载了python 3.3,因为它更加完善。 Of course, since then I have a nightmare with installing modules for 3.3, as python3 packages from synaptic install to 3.2 dir. 当然,从那时起,我就安装了适用于3.3的模块的噩梦,因为python3软件包从突触安装到3.2目录。 So, I installed pip using python 3.3. 因此,我使用python 3.3安装了pip。 Now I have pip-3.3 command, great. 现在我有了pip-3.3命令,太好了。 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". 但是,当我尝试“ sudo pip-3.3 install PySide”时,我很快收到一个错误:“错误:无法找到Python库/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. 而且,当我运行“ sudo pip install PySide”(2.7的命令)时,它就可以构建并安装并完美运行。 Pyvenv and virtualenv both fail too. Pyvenv和virtualenv也会失败。 But I wan't to do it non-env way,just install pyside to global 3.3 lib dir. 但是我不会以非env的方式来做,只是将pyside安装到全局3.3 lib dir中。

So how can I install that PySide to python 3.3? 那么,如何将PySide安装到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. 我只是无法正常工作...看起来我将不得不坚持使用默认的ubuntu python 3版本(此版本运行良好,无论是pip还是突触都可以正常工作),但是我喜欢使用最新的python每次发布都会变得越来越好。

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)" 顺便说一句,如果那很重要,那么在该错误发生之前,我还会收到以下警告:“未找到程序包初始化文件'PySide / init .py(或不是常规文件)”和“未找到程序包初始化文件'pysideuic / init .py”(或非常规文件)”

Edit: I installed full python3.3 from synaptic, including pythoh3.3-dev, debug, lib etc. Everything. 编辑:我从突触安装了完整的python3.3,包括pythoh3.3-dev,debug,lib等。 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? 而且/usr/lib/x86_64-linux-gnu/libpython3.3m.so中存在该动态python 3.3库,也许只是ubuntu的python3.3软件包很差,并且安装方向错误/没有做任何符号链接技巧?

Please try this answer installing from source (PySide) . 请尝试从源(PySide)安装此答案。 Download pyside sources and install from source, follow the instructions on the link. 下载pyside源码并从源码安装,请按照链接上的说明进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM