zoukankan      html  css  js  c++  java
  • pyinstaller报错SyntaxError: 'yield' inside async function 以及pyinstaller安装不了问题

    最好的办法,从新装一遍高版本python环境,解决所有问题

    > python -V
    Python 3.9.0
    > pip -V
    pip 20.2.3 from d:\python\python310\lib\site-packages\pip (python 3.9)
    > pyinstaller -v
    4.7

    pyinstaller  安装如果直接安装报错,可以安装一个低版本试试

    PS D:\python\Anaconda3\Scripts> pip install  pyinstaller==3.2.1
    Collecting pyinstaller==3.2.1
      Downloading https://files.pythonhosted.org/packages/3f/d2/3515242cc5cfed12706506d17728a7ee0b8cf33840e250357fd793a94607/PyInstaller-3.2.1.tar.bz2 (2.4MB)
         |████████████████████████████████| 2.4MB 31kB/s
    Requirement already satisfied: setuptools in d:\python\anaconda3\lib\site-packages (from pyinstaller==3.2.1) (50.3.2)
    Collecting future (from pyinstaller==3.2.1)
      Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
         |████████████████████████████████| 829kB 22kB/s
    Building wheels for collected packages: pyinstaller, future
      Building wheel for pyinstaller (setup.py) ... done
      Stored in directory: C:\Users\lenovo\AppData\Local\pip\Cache\wheels\de\6f\41\ba18c0eaf3b6862d78c6bd50ca2679395c136fb9e087d21cf9
      Building wheel for future (setup.py) ... done
      Stored in directory: C:\Users\lenovo\AppData\Local\pip\Cache\wheels\8b\99\a0\81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e
    Successfully built pyinstaller future
    Installing collected packages: future, pyinstaller
    Successfully installed future-0.18.2 pyinstaller-3.2.1
    PS D:\python\Anaconda3\Scripts> pyinstaller
    usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
                       [--add-data <SRC;DEST or SRC:DEST>]
                       [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR]
                       [--hidden-import MODULENAME]
                       [--additional-hooks-dir HOOKSPATH]
                       [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES]
                       [--key KEY] [-d] [-s] [--noupx] [-c] [-w]
                       [-i <FILE.ico or FILE.exe,ID or FILE.icns>]
                       [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE]
                       [--uac-admin] [--uac-uiaccess] [--win-private-assemblies]
                       [--win-no-prefer-redirects]
                       [--osx-bundle-identifier BUNDLE_IDENTIFIER]
                       [--distpath DIR] [--workpath WORKPATH] [-y]
                       [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
                       [--upx UPX]
                       scriptname [scriptname ...]
    pyinstaller: error: the following arguments are required: scriptname

    SyntaxError: 'yield' inside async function

    pip install git+https://github.com/pyinstaller/pyinstaller.git
    PS D:\haojingkeji\flask-vue-crud\server> pip install git+https://github.com/pyinstaller/pyinstaller.git
    Collecting git+https://github.com/pyinstaller/pyinstaller.git
      Cloning https://github.com/pyinstaller/pyinstaller.git to c:\users\lenovo\appdata\local\temp\pip-req-build-ql6y77de
      Running command git clone -q https://github.com/pyinstaller/pyinstaller.git 'C:\Users\lenovo\AppData\Local\Temp\pip-req-build-ql6y77de'
    加油,愿被这世界温柔以待 ^_^
  • 相关阅读:
    微信小程序Tab选项卡切换大集合
    微信小程序基于swiper组件的tab切换
    微信小程序基于scroll-view实现锚点定位
    商家 APP 如何接入新版支付宝支付,老版本商家如何升级
    JSON 接口如何实现 RSA 非对称加密与签名
    基于微信小程序的用户列表点赞功能
    tensorflow中常用学习率更新策略
    交叉熵损失函数和均方误差损失函数
    python中几个实用的文件操作
    特征选择
  • 原文地址:https://www.cnblogs.com/liruilong/p/15560403.html
Copyright © 2011-2022 走看看