Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Pyinstaller无法执行_Python_Python 3.x_Pyinstaller - Fatal编程技术网

Python Pyinstaller无法执行

Python Pyinstaller无法执行,python,python-3.x,pyinstaller,Python,Python 3.x,Pyinstaller,我使用auto-py-to-exe 程序显示以下命令: pyinstaller--noconfirm--onefile--windowed“C:/Arbeit/WEP/Document finder.py” 我发现了一个线程,它可能也为我工作,它说它可能工作的虚拟环境的转折。但我担心我只是尝试了一些东西,把我的系统搞乱了,因为我不知道如何再次激活它。我正在使用PyCharm 我执行了第1-4步 安装pyinstaller时出现警告: distutils: c:\python\python_3.

我使用auto-py-to-exe

程序显示以下命令:

pyinstaller--noconfirm--onefile--windowed“C:/Arbeit/WEP/Document finder.py”

我发现了一个线程,它可能也为我工作,它说它可能工作的虚拟环境的转折。但我担心我只是尝试了一些东西,把我的系统搞乱了,因为我不知道如何再次激活它。我正在使用PyCharm

我执行了第1-4步

安装pyinstaller时出现警告:

distutils: c:\python\python_3.9.1\Include\UNKNOWN
sysconfig: c:\python\python_3.9.1\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Requirement already satisfied: pyinstaller in c:\python\python_3.9.1\lib\site-packages (4.3)
Requirement already satisfied: altgraph in c:\python\python_3.9.1\lib\site-packages (from pyinstaller) (0.17)
Requirement already satisfied: setuptools in c:\python\python_3.9.1\lib\site-packages (from pyinstaller) (49.2.1)
Requirement already satisfied: pefile>=2017.8.1 in c:\python\python_3.9.1\lib\site-packages (from pyinstaller) (2019.4.18)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in c:\python\python_3.9.1\lib\site-packages (from pyinstaller) (2021.1)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\python\python_3.9.1\lib\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: future in c:\python\python_3.9.1\lib\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: c:\python\python_3.9.1\Include\UNKNOWN
sysconfig: c:\python\python_3.9.1\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None 
Running auto-py-to-exe v2.8.0
Building directory: C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh
Provided command: pyinstaller --noconfirm --onefile --windowed  "C:/Arbeit/WEP/Document-finder.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onefile --windowed C:/Arbeit/WEP/Document-finder.py --distpath C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\application --workpath C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build --specpath C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh

25990 INFO: PyInstaller: 4.3
25995 INFO: Python: 3.9.1
25997 INFO: Platform: Windows-10-10.0.18362-SP0
26001 INFO: wrote C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\Document-finder.spec
26013 INFO: UPX is not available.
26028 INFO: Extending PYTHONPATH with paths
['C:\\Arbeit\\WEP', 'C:\\Users\\STERNB~1\\AppData\\Local\\Temp\\tmpqel4c4kh']
26049 INFO: checking Analysis
26053 INFO: Building Analysis because Analysis-00.toc is non existent
26056 INFO: Initializing module dependency graph...
26064 INFO: Caching module graph hooks...
26082 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
26096 INFO: Analyzing base_library.zip ...
29277 INFO: Processing pre-find module path hook distutils from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
29284 INFO: distutils: retargeting to non-venv dir 'c:\\python\\python_3.9.1\\lib'
31934 INFO: Caching module dependency graph...
32172 INFO: running Analysis Analysis-00.toc
32200 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\python\python_3.9.1\python.exe
32348 WARNING: lib not found: api-ms-win-core-path-l1-1-0.dll dependency of c:\python\python_3.9.1\python39.dll
32589 INFO: Analyzing C:\Arbeit\WEP\Document-finder.py
32614 INFO: Processing module hooks...
32620 INFO: Loading module hook 'hook-difflib.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32628 INFO: Loading module hook 'hook-distutils.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32633 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32642 INFO: Loading module hook 'hook-encodings.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32782 INFO: Loading module hook 'hook-heapq.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32790 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32976 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32983 INFO: Loading module hook 'hook-pickle.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32991 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
32998 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
33005 INFO: Loading module hook 'hook-xml.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
33071 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks'...
33321 INFO: checking Tree
33325 INFO: Building Tree because Tree-00.toc is non existent
33330 INFO: Building Tree Tree-00.toc
33421 INFO: checking Tree
33425 INFO: Building Tree because Tree-01.toc is non existent
33431 INFO: Building Tree Tree-01.toc
33567 INFO: checking Tree
33571 INFO: Building Tree because Tree-02.toc is non existent
33578 INFO: Building Tree Tree-02.toc
33606 INFO: Looking for ctypes DLLs
33647 INFO: Analyzing run-time hooks ...
33657 INFO: Including run-time hook 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
33665 INFO: Including run-time hook 'c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
33680 INFO: Looking for dynamic libraries
33959 INFO: Looking for eggs
33965 INFO: Using Python library c:\python\python_3.9.1\python39.dll
33971 INFO: Found binding redirects: 
[]
33980 INFO: Warnings written to C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build\Document-finder\warn-Document-finder.txt
34042 INFO: Graph cross-reference written to C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build\Document-finder\xref-Document-finder.html
34078 INFO: checking PYZ
34085 INFO: Building PYZ because PYZ-00.toc is non existent
34092 INFO: Building PYZ (ZlibArchive) C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build\Document-finder\PYZ-00.pyz
34667 INFO: Building PYZ (ZlibArchive) C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build\Document-finder\PYZ-00.pyz completed successfully.
34692 INFO: checking PKG
34699 INFO: Building PKG because PKG-00.toc is non existent
34704 INFO: Building PKG (CArchive) PKG-00.pkg
37447 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
37485 INFO: Bootloader c:\python\python_3.9.1\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
37490 INFO: checking EXE
37495 INFO: Building EXE because EXE-00.toc is non existent
37501 INFO: Building EXE from EXE-00.toc
37510 INFO: Copying icons from ['c:\\python\\python_3.9.1\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-windowed.ico']
37587 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
37592 INFO: Writing RT_ICON 1 resource with 3752 bytes
37596 INFO: Writing RT_ICON 2 resource with 2216 bytes
37602 INFO: Writing RT_ICON 3 resource with 1384 bytes
37607 INFO: Writing RT_ICON 4 resource with 38188 bytes
37612 INFO: Writing RT_ICON 5 resource with 9640 bytes
37616 INFO: Writing RT_ICON 6 resource with 4264 bytes
37622 INFO: Writing RT_ICON 7 resource with 1128 bytes
37635 INFO: Updating manifest in C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\build\Document-finder\runw.exe.e01iew3u
37645 INFO: Updating resource type 24 name 1 language 0
37656 INFO: Appending archive to EXE C:\Users\STERNB~1\AppData\Local\Temp\tmpqel4c4kh\application\Document-finder.exe
41404 INFO: Building EXE from EXE-00.toc completed successfully.

Moving project to: C:\Users\sternberg\output
Complete.