• 安装pystaller


    安装命令

    # -i指定下载地址,此处采用清华大学镜像
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package pyinstaller
    

    错误信息

    ERROR: Complete output from command 'C:Users依风AppDataLocalProgramsPythonPython37python.exe' 'C:Users依风AppDataLocalProgramsPythonPython37libsite-packagespip\_vendorpep517\_in_process.py' prepare_metadata_for_build_wheel 'C:Users依风AppDataLocalTemp	mp1kb5w73z':
        ERROR: running dist_info
        creating C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-info
        writing C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infoPKG-INFO
        writing dependency_links to C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infodependency_links.txt
        writing entry points to C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infoentry_points.txt
        writing requirements to C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-info
    equires.txt
        writing top-level names to C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-info	op_level.txt
        writing manifest file 'C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt'
        reading manifest file 'C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt'
        reading manifest template 'MANIFEST.in'
        Error in sitecustomize; set PYTHONVERBOSE for traceback:
        SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xd2 in position 0: invalid continuation byte (sitecustomize.py, line 7)
        no previously-included directories found matching 'bootloaderuild'
        no previously-included directories found matching 'bootloader.waf-*'
        no previously-included directories found matching 'bootloader.waf3-*'
        no previously-included directories found matching 'bootloaderwaf-*'
        no previously-included directories found matching 'bootloaderwaf3-*'
        no previously-included directories found matching 'bootloader\_sdks'
        no previously-included directories found matching 'bootloader.vagrant'
        warning: no previously-included files found matching 'bootloader.lock-waf*'
        no previously-included directories found matching 'docsource'
        no previously-included directories found matching 'doc\_build'
        warning: no previously-included files matching '*.tmp' found under directory 'doc'
        warning: no files found matching 'news\_template.rst'
        no previously-included directories found matching 'news'
        no previously-included directories found matching 'old'
        no previously-included directories found matching 'scripts'
        no previously-included directories found matching 'testsscripts'
        no previously-included directories found matching '.github'
        warning: no previously-included files found matching '.*'
        warning: no previously-included files found matching '*.yml'
        warning: no previously-included files found matching '*~'
        warning: no previously-included files found matching '.directory'
        writing manifest file 'C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt'
        creating 'C:Users依风AppDataLocalTemppip-install-oejownhrpyinstallerpip-wheel-metadataPyInstaller.dist-info'
        error: invalid command 'bdist_wheel'
        ----------------------------------------
    ERROR: Command "'C:Users依风AppDataLocalProgramsPythonPython37python.exe' 'C:Users依风AppDataLocalProgramsPythonPython37libsite-packagespip\_vendorpep517\_in_process.py' prepare_metadata_for_build_wheel 'C:Users依风AppDataLocalTemp	mp1kb5w73z'" failed with error code 1 in C:Users依风AppDataLocalTemppip-install-oejownhrpyinstaller
    

    解决方案

    pip install -U setuptools # 更新工具
    pip install pywin32 #可能是缺少pywin32,如果没有安装将其安装
    pip install wheel #可能是缺少wheel,如果没有安装将其安装
    
  • 相关阅读:
    WebHttpRequest在sharepoint文档库中的使用
    使用log4net无法将日志记录插入mysql数据库解决办法
    通过WebClient模拟post上传文件到服务器
    webservice测试窗体只能用于来自本地计算机的请求
    rest api方式实现对文档库的管理
    咏南中间件支持即时通讯
    QJSON封装好的序列和还原方法
    ADO特有的流化和还原
    FIREMONEY手机虚拟键盘遮挡的解决
    安卓安装ZXING(二维码)SDK
  • 原文地址:https://www.cnblogs.com/huang-changfan/p/11084517.html
Copyright © 2020-2023  润新知