【问题标题】:PIP fails to install auto-py-to-exePIP 无法安装 auto-py-to-exe
【发布时间】:2019-12-31 23:32:16
【问题描述】:

我对 PIP 3.8 有疑问

C:\Users\iivoo\PycharmProjects\TEST\venv\Scripts>pip install auto-py-to-exe
Collecting auto-py-to-exe...

distutils.errors.DistutilsError: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\iivoo\AppData\Local\Temp\pip-install-gf4x4k83\gevent\

我不知道我有什么问题:最新的 Visual Studio C++ 构建工具,python 3.8,pip 3.8,最新的 pyinstaller,windows 10

请帮帮我,谢谢!

编辑:抱歉英语不好!

【问题讨论】:

    标签: python windows pip python-3.8


    【解决方案1】:

    我将尝试为您提供此失败原因的简短列表。

    1. Auto Py To Exe 使用(基于)PyInstaller
    2. PyInstaller 不支持 Python 3.8
    3. 因此,Auto Py To Exe 不适用于 Python 3.8.x,但适用于 Python:Python >= 2.7(包括 3.7 ?)Read here

    【讨论】:

    • 顺便说一句。没有这样的 PIP 版本 3.8。下次,您应该添加 PIP LIST 命令的输出。它看起来像这样: 包版本 -------------- ---------- altgraph 0.16.1 Click 7.0 future 0.18.2 pefile 2019.4.18 pip 19.3.1 PyInstaller 3.5 PyQt5 5.14.0 PyQt5-sip 12.7.0 pyqt5-tools 5.13.0.1.5 python-dotenv 0.10.3 pywin32-ctypes 0.2.0 setuptools 41.2.0
    【解决方案2】:

    Python 3.8 尚不支持 PyInstaller。此解决方案有效:

        pip uninstall pyinstaller
        pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
        pip install -U gevent==1.5a3
        pip install -U auto-py-to-exe
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-04
      • 2022-08-16
      • 2020-10-24
      • 1970-01-01
      • 1970-01-01
      • 2021-11-04
      相关资源
      最近更新 更多