命令“python setup.py egg_info”的PySide安装错误失败,错误代码为1

时间:2017-10-13 06:37:17

标签: pip pyside python-3.6

我正在尝试在Python36-32上安装PySide,但在安装过程中遇到了一些问题。在我的笔记本电脑中,目前安装了PySide的Python27。但是,由于Python27中的QString转换问题,我必须切换到使用Python3。

以下是安装过程中的错误消息,不确定它是否在Python36-32中没有PySide版本或其他问题。

  • 首先尝试

    C:\Users\Maybel>pip3 install PySide
    Collecting PySide
      Using cached PySide-1.2.4.tar.gz
        Complete output from command python setup.py egg_info:
        only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\Maybel\AppData\Local\Temp\pip-build-xk_u6djn\PySide\

  • 尝试升级setuptools,因为这是在线建议的方式之一 here

    C:\Users\Maybel>pip3 install --upgrade setuptools
    Requirement already up-to-date: setuptools in c:\users\maybel\appdata\local\programs\python\python36-32\lib\site-packages

    C:\Users\Maybel>pip install PySide
    Requirement already satisfied: PySide in c:\python27\lib\site-packages

  • 升级setuptools后第二次尝试

    C:\Users\Maybel>pip3 install PySide
    Collecting PySide
      Using cached PySide-1.2.4.tar.gz
        Complete output from command python setup.py egg_info:
        only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\Maybel\AppData\Local\Temp\pip-build-6zrldsw7\PySide\

  • 尝试使用 pip install PySide

    C:\Users\Maybel>pip install PySide
    Requirement already satisfied: PySide in c:\python27\lib\site-packages

请指教。在此先感谢:)

1 个答案:

答案 0 :(得分:2)

我在错误输出中看到了这一点:

only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

即。 PySide检查Python的版本并拒绝使用3.6。