已有183人关注
.py文件转换打包成.exe文件的安装包出现这问题求解
发表在Python图书答疑 2020-03-19 悬赏:10 学分 《Python项目开发案例集锦》第2章 企业编码生成系统
是否精华
版块置顶:

难得糊涂(303637012) 2020/3/19 15:18:46

C:\Python38>pip install --upgrade pyinstaller
Collecting pyinstaller
  Using cached PyInstaller-3.6.tar.gz (3.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\难得糊涂\AppData\Local\Temp\tmpi43wzsvw'
         cwd: C:\Users\难得糊涂\AppData\Local\Temp\pip-install-qkb_9nl0\pyinstaller
    Complete output (36 lines):
    running dist_info
    creating C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info
    writing C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\dependency_links.txt
    writing entry points to C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\entry_points.txt
    writing requirements to C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\requires.txt
    writing top-level names to C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\top_level.txt
    writing manifest file 'C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc4 in position 0: invalid continuation byte (sitecustomize.py, line 21)
    no previously-included directories found matching 'bootloader\build'
    no previously-included directories found matching 'bootloader\.waf-*'
    no previously-included directories found matching 'bootloader\.waf3-*'
    no previously-included directories found matching 'bootloader\waf-*'
    no previously-included directories found matching 'bootloader\waf3-*'
    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 'doc\source'
    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 'tests\scripts'
    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\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.egg-info\SOURCES.txt'
    creating 'C:\Users\难得糊涂\AppData\Local\Temp\pip-modern-metadata-ru8dqlha\PyInstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\难得糊涂\AppData\Local\Temp\tmpi43wzsvw' Check the logs for full command output.

难得糊涂(303637012) 2020/3/19 15:19:12
老师求解,怎么回事


分享到:
精彩评论 3
hello_world
学分:154 LV4
2020-03-20
沙发

image.png

image.png

我猜是对Windows10的兼容性问题,你也是Windows10吗?

三生石
学分:2171 LV10
TA的每日心情
11
2018-12-20 21:21:04
2020-03-20
板凳

您好读者!如果您的计算机用户名为“难得糊涂”建议您将该用户名修改为英文试下。

难得糊涂A
学分:76 LV3
2020-03-21
地板

hello_world 发表于2020-03-20 11:31

image.png

image.png

我猜是对Windows10的兼容性问题,你也是Windows10吗?

是win10

首页上一页 1 下一页尾页 3 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照