当前位置:网站首页>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
边栏推荐
- Virtual machine class loading mechanism
- How to select reliable securities analysts?
- Kingbasees Security Guide for Jincang database -- 5.1. database transmission security
- idea启动项目mvn命令终端用不了法将“mvn”项识别为 cmdlet
- IPC: multi process binder Aidl user guide, including cases
- pytorch_ Lightning in lightning_ The output of hparams.yaml in logs is null
- Important SQL server functions - numeric functions
- Information system project manager (2022) - key content: Strategic Management (17)
- C语言初阶——循环语句(while,for,do while)
- 《关于我写自定义cell这件事》
猜你喜欢

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

pytorch_ Lightning in lightning_ The output of hparams.yaml in logs is null

Ma Yi, Shen Xiangyang, Cao Ying's latest AI overview is hot! It took 3 months to build, netizens: required papers

Important SQL server functions - numeric functions

Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)

Important SQL server functions - other functions

ESP8266 WIFI 模块和手机通信

Jupyter Notebook安装代码提示功能

Citrix virtual desktop tcp/udp transmission protocol switching

Virtual machine class loading mechanism
随机推荐
【sylar】框架篇-Chapter7-IO 协程调度模块
Power consumption: leakage power
Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina
H265/hevc noun explanation -- CTU, CTB, Cu, CB, Tu, PU, TB, Pb, LCU, slice, tile, chroma, luma, I frame, B frame, P frame
IPC: multi process binder Aidl user guide, including cases
上班摸鱼打卡模拟器微信小程序源码
【sylar】框架篇-Chapter12-ByteArray 模块
Work fishing clock simulator wechat applet source code
mysql分区表改造
Use Baidu developer tool 4.0 to build a dedicated applet IDE
pytorch_ Lightning in lightning_ The output of hparams.yaml in logs is null
VAE generation model (with VAE implementation MNIST code)
Shanghai Telecom released public computing services and signed the action plan of "Joint Innovation Center for intelligent computing applications" with Huawei and other partners
Thoroughly understand the sharing function in wechat games
Solana「迷惑行为」:造手机、开门店
Information system project manager (2022) - key content: Project Contract Management (13)
校园流浪猫信息记录和分享的小程序源码
Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)
网页源代码查看竟然有这么多方法!你都知道吗?
Efficient practice intelligent analysis of massive log data in aviation industry