当前位置:网站首页>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
边栏推荐
- gerrit操作-回退掉某个patch_set
- Go grpc: a solution of connection reset by peer
- The simulation test disconnects the server from the public network
- ESP8266 WIFI 模块和手机通信
- The State Administration of market supervision exposes typical cases of food safety
- Solana「迷惑行为」:造手机、开门店
- 2022-7-27 顾宇佳 学习笔记
- Go structure
- 【sylar】框架篇-Chapter6-协程调度模块
- [untitled]
猜你喜欢

Fedformer MOE module

idea启动项目mvn命令终端用不了法将“mvn”项识别为 cmdlet

高数_第4章__曲线积分_习题解法

idea2022更改本地仓库,配置阿里云中央仓库

Kotlin——函数

H265/hevc noun explanation -- CTU, CTB, Cu, CB, Tu, PU, TB, Pb, LCU, slice, tile, chroma, luma, I frame, B frame, P frame

Reading of seq2path: generating sentimental tuples as paths of a tree

openpose的一些个人理解

重要的 SQL Server 函数 - 日期函数

空间复杂度计算超全整理!!(一起手撕复杂度计算
随机推荐
idea2022更改本地仓库,配置阿里云中央仓库
【实战】使用 Web Animations API 实现一个精确计时的时钟
20-Openwrt crond crontab
【牛客】求1+2+3+...+n
【sylar】框架篇-Chapter6-协程调度模块
Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina
Kingbasees Security Guide for Jincang database -- 5.2. data integrity protection
Work fishing clock simulator wechat applet source code
虚拟机类加载机制
About me writing a custom cell
功耗:Leakage Power
Kingbasees security guide of Jincang database -- 6.2. Configuration files related to authentication
10 more advanced open source command line tools
【sylar】框架篇-Chapter22-辅助模块
Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)
Campus stray cat information recording and sharing applet source code
Information system project manager (2022) - key content: Knowledge Management (15)
Seamless support for hugging face community, colossal AI low-cost and easy acceleration of large model
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]
21 openwrt kernel module changed to.Ko automatic loading