当前位置:网站首页>Warning: file already exists but should not: c:\users\workmai\appdata\local\temp appears when Python packages exe\_ MEI13
Warning: file already exists but should not: c:\users\workmai\appdata\local\temp appears when Python packages exe\_ MEI13
2022-07-28 04:31:00 【sunshinecxm_ BJTU】
Reference resources : https://blog.csdn.net/weixin_43218120/article/details/108596405
this bug It's using pyinstaller The compiled file is exe Generated in the file , As follows :
WARNING: file already exists but should not: C:\Users\workAI\AppData\Local\Temp\_MEI132522\torch\_C
Statement bug There is no impact during compilation and operation , But I unknowingly solved this for accidental reasons bug, The specific operation is as follows :
First find .spec Profile modification profile , Add the following code to the configuration file :
for d in a.datas:
if '_C.cp37-win_amd64.pyd' in d[0]:
a.datas.remove(d)
break
The details of the .spec The contents of the configuration file are as follows :
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['MyTcpServer.py'],
pathex=['G:\\yolo'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
for d in a.datas:
if '_C.cp37-win_amd64.pyd' in d[0]:
a.datas.remove(d)
break
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='MyTcpServer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True )
After modifying the configuration file , Use the following command to compile exe file :
pyinstaller MyTcpServer.spec
边栏推荐
- Full resolution of the use of go native plug-ins
- Important SQL server functions - date functions
- 将数据库拿到的数据渲染到elementUI 中的table中去
- could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node
- Idea2022 change the local warehouse and configure Alibaba cloud central warehouse
- Glusterfs file is not mounted, permission: R-S
- Important SQL server functions - string utilities
- Reading of seq2path: generating sentimental tuples as paths of a tree
- Esp8266 WiFi module and mobile communication
- High number_ Chapter 4__ Curvilinear integral_ Exercise solution
猜你喜欢

Elementary level of C language -- while, for, do while

上班摸鱼打卡模拟器微信小程序源码

Campus stray cat information recording and sharing applet source code

10 more advanced open source command line tools

Zhejiang University and other recent review papers on deep learning new drug design

Idea2022 change the local warehouse and configure Alibaba cloud central warehouse

Go structure

could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node

Important SQL server functions - string utilities

Advanced architects, 16 common principles of microservice design and Governance
随机推荐
26 openwrt port forwarding DMZ UPnP
gerrit操作-回退掉某个patch_set
[mathematical modeling] Based on MATLAB seismic exploration Marmousi model [including Matlab source code, 1977]
Reading of seq2path: generating sentimental tuples as paths of a tree
RT thread changes the print serial port (add other functions on the basis of BSP)
Select sorting method
idea2022更改本地仓库,配置阿里云中央仓库
About me writing a custom cell
Full resolution of the use of go native plug-ins
【sylar】框架篇-Chapter20-守护进程模块
Applet form-2
上班摸鱼打卡模拟器微信小程序源码
[performance optimization methodology series] III. core idea of performance optimization (2)
Bio annotation of emotion analysis aste triples extraction
【sylar】框架篇-Chapter6-协程调度模块
CMake使用基础汇总
登录之后右上角改变 进入登录状态
Some personal understandings of openpose
Information system project manager (2022) - key content: Strategic Management (17)
There are so many ways to view the web source code! Do you know?