PyInstaller无法安装,Python 3.6.0a4和x64 Windows [英] PyInstaller won't install, Python 3.6.0a4 and x64 Windows

查看:220
本文介绍了PyInstaller无法安装,Python 3.6.0a4和x64 Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我说过Python版本(来自 https://www.python.org/downloads/windows/ )和x64 Windows10。
每当我尝试执行 pip install pyinstaller时,它都会崩溃并显示错误:

I have said Python version (from https://www.python.org/downloads/windows/), and x64 Windows 10. Every time I try to execute "pip install pyinstaller" it crashes with an error:

C:\WINDOWS\system32>pip install pyinstaller
Collecting pyinstaller
  Using cached PyInstaller-3.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\users\jskurski\appdata\local\programs\python\python36\lib\site-packages (from pyinstaller)
Collecting pefile (from pyinstaller)
  Using cached pefile-2016.3.28.tar.gz
Collecting pypiwin32 (from pyinstaller)
  Using cached pypiwin32-219.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\jskurski\AppData\Local\Temp\pip-build-y9lsbd5f\pypiwin32\setup.py", line 121
        print "Building pywin32", pywin32_version
                               ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\jskurski\AppData\Local\Temp\pip-build-y9lsbd5f\pypiwin32\

对我来说似乎有一个版本的msmatch或什么。不幸的是,我自己无法弄清楚。

So, for me it seems there is a version msmatch or something. Unofortunately, I can not figure it out myself.

有什么建议吗?
是否有人在Windows上成功使用了带有最新3.6 Python的PyInstaller?还是我应该将Python降级到较早的版本?

Any suggestions? Has anybody sucessfully used PyInstaller with latest 3.6 Python on Windows? Or maybe I should downgrade Python to older version?

编辑:在另一台PC上测试(相同的环境),并且是相同的。

edit: tested on another PC (same enviroment) and it was the same.

edit2:似乎可以在3.5.2版本上使用,所以暂时可能是一种方法。

edit2: seems to work on 3.5.2 version, so it's probably a way to go, for now.

推荐答案

我已关闭机箱,因为我降级到了稳定的3.5.2。该Alpha版本中可能存在一些不一致之处,从而导致了这种情况。我只想编写一个简单的GUI Windows程序,所以我将不做进一步研究。

Case is closed for me, as I downgraded to stable 3.5.2. Probably some inconsistency in that alpha release, which caused this. I just wanted to write a simple GUI Windows program, so I will not investigate further.

这篇关于PyInstaller无法安装,Python 3.6.0a4和x64 Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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