求助,求助
运行pyinstaller,dist文件夹里没有exe文件C:\Users\DELL\Desktop>pyinstaller -F untitled.py
117 INFO: PyInstaller: 4.0
117 INFO: Python: 3.7.0 (conda)
118 INFO: Platform: Windows-10-10.0.19041-SP0
119 INFO: wrote C:\Users\DELL\Desktop\untitled.spec
122 INFO: UPX is not available.
126 INFO: Extending PYTHONPATH with paths
['C:\\Users\\DELL\\Desktop', 'C:\\Users\\DELL\\Desktop']
202 INFO: checking Analysis
202 INFO: Building Analysis because Analysis-00.toc is non existent
202 INFO: Initializing module dependency graph...
209 INFO: Caching module graph hooks...
228 INFO: Analyzing base_library.zip ...
5544 INFO: Caching module dependency graph...
5722 INFO: running Analysis Analysis-00.toc
5742 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\dell\anaconda3\python.exe
6102 INFO: Analyzing C:\Users\DELL\Desktop\untitled.py
7837 INFO: Processing pre-find module path hook distutils from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
7840 INFO: distutils: retargeting to non-venv dir 'c:\\users\\dell\\anaconda3\\lib'
10863 INFO: Processing pre-find module path hook site from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
10865 INFO: site: retargeting to fake-dir 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules'
15071 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.
22829 INFO: Processing pre-safe import module hook six.moves from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
28865 INFO: Processing module hooks...
28866 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
29099 INFO: Loading module hook 'hook-pytest.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
30510 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
30514 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
30640 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
30696 INFO: Loading module hook 'hook-numpy.core.py' from 'c:\\users\\dell\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "c:\users\dell\anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "c:\users\dell\anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "c:\users\dell\anaconda3\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "c:\users\dell\anaconda3\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "c:\users\dell\anaconda3\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).Otherwise reinstall numpy.
Original error was: DLL load failed: 找不到指定的模块。
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\pkgutil.py", line 493, in find_loader
spec = importlib.util.find_spec(fullname)
File "c:\users\dell\anaconda3\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "c:\users\dell\anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "c:\users\dell\anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "c:\users\dell\anaconda3\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "c:\users\dell\anaconda3\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "c:\users\dell\anaconda3\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).Otherwise reinstall numpy.
Original error was: DLL load failed: 找不到指定的模块。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 289, in get_module_file_attribute
loader = pkgutil.find_loader(package)
File "c:\users\dell\anaconda3\lib\pkgutil.py", line 499, in find_loader
raise ImportError(msg.format(fullname, type(ex), ex)) from ex
ImportError: Error while finding loader for 'numpy.core' (<class 'ImportError'>:
Importing the multiarray numpy extension module failed.Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).Otherwise reinstall numpy.
Original error was: DLL load failed: 找不到指定的模块。
)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\dell\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\DELL\Anaconda3\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 720, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 667, in build
exec(code, spec_namespace)
File "C:\Users\DELL\Desktop\untitled.spec", line 17, in <module>
noarchive=False)
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 242, in __init__
self.__postinit__()
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 419, in assemble
self.graph.process_post_graph_hooks()
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\depend\analysis.py", line 365, in process_post_graph_hooks
module_hook.post_graph()
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py", line 440, in post_graph
self._load_hook_module()
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py", line 407, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\compat.py", line 588, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 907, in load_module
File "<frozen importlib._bootstrap_external>", line 732, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\hooks\hook-numpy.core.py", line 29, in <module>
pkg_base, pkg_dir = get_package_paths('numpy.core')
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 506, in get_package_paths
file_attr = get_module_file_attribute(package)
File "c:\users\dell\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 308, in get_module_file_attribute
raise ImportError('Unable to load module attribute') from e
ImportError: Unable to load module attribute
请问这是什么问题,该怎么解决呀 你要安装什么 我帮你人工翻译一下吧,无法加载模块属性, 这就是他的意思。 可能是你的pyinstaller没下载好
或者是你没有下载win32,你可以再在命令行输入 pip install win32,如果有报错的话,你就按照他说的做。 如果你不会英语的话,你可以百度翻译,网址:https://fanyi.baidu.com/
页:
[1]