鱼C论坛

 找回密码
 立即注册
查看: 1187|回复: 5

求助,求助

[复制链接]
发表于 2020-10-15 11:32:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
运行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

请问这是什么问题,该怎么解决呀
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-10-15 11:59:36 | 显示全部楼层
你要安装什么
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-11-10 19:24:43 From FishC Mobile | 显示全部楼层
我帮你人工翻译一下吧,无法加载模块属性, 这就是他的意思。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-11-10 19:25:27 From FishC Mobile | 显示全部楼层
可能是你的pyinstaller没下载好
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-11-10 19:27:52 From FishC Mobile | 显示全部楼层
或者是你没有下载win32,你可以再在命令行输入 pip install win32,如果有报错的话,你就按照他说的做。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-11-10 19:29:43 From FishC Mobile | 显示全部楼层
如果你不会英语的话,你可以百度翻译,网址:https://fanyi.baidu.com/
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-17 21:58

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表