Pip PySide安装错误,命令为;python setup.py egg“u info”;失败,错误代码为1
我试图在Python36-32上安装PySide,但在安装过程中遇到了一些问题。在我的笔记本电脑中,目前有安装了PySide的Python27。然而,由于Python27中的QString转换问题,我不得不切换到使用Python3 下面是安装过程中的错误消息,不确定Python36-32中是否存在PySide版本不可用或其他问题Pip PySide安装错误,命令为;python setup.py egg“u info”;失败,错误代码为1,pip,pyside,python-3.6,Pip,Pyside,Python 3.6,我试图在Python36-32上安装PySide,但在安装过程中遇到了一些问题。在我的笔记本电脑中,目前有安装了PySide的Python27。然而,由于Python27中的QString转换问题,我不得不切换到使用Python3 下面是安装过程中的错误消息,不确定Python36-32中是否存在PySide版本不可用或其他问题 初试 C:\Users\Maybel>pip3安装PySide 收集PySide 使用缓存的PySide-1.2.4.tar.gz 从命令python setup.
- 初试
- 尝试升级setuptools,因为这是在线建议的方法之一
- 升级setuptools后进行第二次尝试
- 尝试使用pip安装PySide
请给我一些建议。提前感谢:)我在错误输出中看到:
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
也就是说,PySide检查Python的版本并拒绝使用3.6。PySide在Python-3.6中工作得非常好。问题出在pip3上,而不是PySide上。@ekhumoro如何解释错误消息?我刚从PyPI下载了PySide,发现错误消息来自
setup.py
。不确定,但我已经安装了PySide-1.2.4,并在Arch Linux上使用Python-3.6.2。我看了一下,但我没有看到编译它所需的任何补丁或其他时髦的东西。@ekhumoro也许是Arch开发者修补了PySide。Prisitne版本清楚地列出了兼容的Python版本。不,问题实际上是生成pyside绑定的源代码。ArchLinux确实包含了一个补丁。
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
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\
C:\Users\Maybel>pip install PySide
Requirement already satisfied: PySide in c:\python27\lib\site-packages
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]