когда ввожу python -m PyInstaller paintapp.spec выдает ошибку:
260 WARNING: stderr: Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
260 WARNING: stderr: File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
262 WARNING: stderr: "__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
262 WARNING: stderr: File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
262 WARNING: stderr: exec code in run_globals
File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 101, in
262 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 101, in
run()
263 WARNING: stderr: run()
File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 94, in run
263 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
263 WARNING: stderr: run_build(pyi_config, spec_file, **vars(args))
File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
264 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
266 WARNING: stderr: PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 814, in main
269 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 814, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
273 WARNING: stderr: build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 760, in build
273 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 760, in build
exec(text, spec_namespace)
276 WARNING: stderr: exec(text, spec_namespace)
File "", line 3, in
276 WARNING: stderr: File "", line 3, in
ImportError: cannot import name sdl2
277 WARNING: stderr: ImportError: cannot import name sdl2
Версия python - 2.7.14
Вопрос задан
более трёх лет назад
209 просмотров