我正在尝试在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\
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
请指教。在此先感谢:)
答案 0 :(得分:2)
我在错误输出中看到了这一点:
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
即。 PySide检查Python的版本并拒绝使用3.6。