当前位置:网站首页>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
边栏推荐
- [mathematical modeling] Based on MATLAB seismic exploration Marmousi model [including Matlab source code, 1977]
- Simple summary of Modbus Protocol
- 031 log4j log framework
- 《KG-BERT: BERT for Knowledge Graph Completion》
- 20-Openwrt crond crontab
- Slice切片
- Cyber Nuwa, how to make digital people?
- What is the account opening process of qiniu business school? Is it safe?
- High number_ Chapter 4__ Curvilinear integral_ Exercise solution
- 24-Openwrt dnsmasq
猜你喜欢

校园流浪猫信息记录和分享的小程序源码

Select sorting method

Cyber Nuwa, how to make digital people?

ESP8266 WIFI 模块和手机通信

High number_ Chapter 4__ curvilinear integral

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

Information system project manager (2022) - key content: Information System Security Management (20)
![[coding and decoding] Huffman coding and decoding based on Matlab GUI [including Matlab source code 1976]](/img/af/27e3794f93166d8ecad9b42dafaf0f.png)
[coding and decoding] Huffman coding and decoding based on Matlab GUI [including Matlab source code 1976]

23 openwrt switch VLAN configuration

Some personal understandings of openpose
随机推荐
Information system project manager (2022) - key content: information system integrated testing and management, project management maturity model, quantitative project management (21)
Elementary level of C language -- while, for, do while
【sylar】框架篇-Chapter12-ByteArray 模块
setup和hold timing分析不满足是解决方法
The State Administration of market supervision exposes typical cases of food safety
【sylar】框架篇-Chapter23-模块篇总结
ESP8266 WIFI 模块和手机通信
Important SQL server functions - string utilities
23 openwrt switch VLAN configuration
物联网工业串口转WiFi模块 无线路由WiFi模块的选型
How much does it cost to build a self built server for ark survival evolution?
【sylar】框架篇-Chapter14-TcpServer 模块
Information system project manager (2022) - key content: Knowledge Management (15)
Kotlin——函数
Space complexity calculation super full sorting!! (calculation of hand tearing complexity
MySQL: data types and operators
Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)
【二、移动web网页开发】2D&3D转换与动画、移动端布局、响应式布局
Important SQL server functions - date functions
Seamless support for hugging face community, colossal AI low-cost and easy acceleration of large model