当前位置:网站首页>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
边栏推荐
- Sort - cardinal sort
- 【sylar】框架篇-Chapter22-辅助模块
- Detailed explanation of pl/sql parameters ("box model")
- Information system project manager (2022) - key content: Project Risk Management (11)
- Information system project manager (2022) - key content: Knowledge Management (15)
- 【sylar】框架篇-Chapter15-Stream 模块
- Fearless of side impact damage, Chery arize 8 fully protects the safety of passengers
- Information system project manager (2022) - key content: Strategic Management (17)
- NAT基本原理与私有IP
- MySQL:数据类型和运算符
猜你喜欢
![[performance optimization methodology series] III. core idea of performance optimization (2)](/img/3c/9a2daea9bc136ae48d20d96e8f0402.png)
[performance optimization methodology series] III. core idea of performance optimization (2)

Idea2022 change the local warehouse and configure Alibaba cloud central warehouse

Use Baidu developer tool 4.0 to build a dedicated applet IDE

031 log4j log framework

H. 265 web player easyplayer realizes webrtc video real-time recording function

Reading of a unified generic framework for aspect based sentimental analysis

Information system project manager (2022) - key content: Project Risk Management (11)
![[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]](/img/5e/dfe029490183ee74687606941ce98e.jpg)
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]

将数据库拿到的数据渲染到elementUI 中的table中去

Practice and thinking of AI standardization engine in pink client
随机推荐
Select sorting method
Power consumption: leakage power
MySQL:数据类型和运算符
【sylar】框架篇-Chapter23-模块篇总结
《关于我写自定义cell这件事》
Cyber Nuwa, how to make digital people?
Information system project manager (2022) - key content: Project Contract Management (13)
Kingbasees Security Guide for Jincang database -- 5.2. data integrity protection
关系数据库事务中的对象锁定
Slice切片
【牛客】求1+2+3+...+n
C语言初阶——循环语句(while,for,do while)
Reading of the paper "attentional encoder network for targeted sentimental classification"
【sylar】框架篇-Chapter15-Stream 模块
What is the account opening process of qiniu business school? Is it safe?
High number_ Chapter 4__ curvilinear integral
Object locking in relational database transactions
[blood vessel detection] Based on MATLAB mom method, combined with Hessian and curve fitting, blood vessel diameter measurement [including Matlab source code, 1970]
Shanghai Telecom released public computing services and signed the action plan of "Joint Innovation Center for intelligent computing applications" with Huawei and other partners
Learn regular expressions (regexp)