@Warlam

Не работает pyinstaller?

Не работает pyinstaller. При вводе в консоль pyinstaller выдает:
SyntaxError: Non-UTF-8 code starting with '\xe4' in file C:\Users\Даниил\AppData\L
ocal\Programs\Python\Python39\Scripts\pyinstaller-script.py on line 1, but no en
coding declared; see python.org/dev/peps/pep-0263 for details
При установке выводится ошибка:
ERROR: Command errored out with exit status 1:
command: 'c:\users\даниил\appdata\local\programs\python\python38\python.exe'
'c:\users\дэни\appdata\local\programs\python\python38\lib\site-packages\pip\_ven
dor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users
\3939~1\AppData\Local\Temp\tmp9yafqxzn'
cwd: C:\Users\Даниил\AppData\Local\Temp\pip-install-0nda1hub\pyinstaller_
fec1fae201774864af3c8e72ccf5b18c
Complete output (37 lines):
running dist_info
creating C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-ye6hh5v3\PyIns
taller.egg-info
writing C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-ye6hh5v3\PyInst
aller.egg-info\PKG-INFO
writing dependency_links to C:\Users\Даниил\AppData\Local\Temp\pip-modern-meta
data-ye6hh5v3\PyInstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata
-ye6hh5v3\PyInstaller.egg-info\entry_points.txt
writing requirements to C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata
-ye6hh5v3\PyInstaller.egg-info\requires.txt
writing top-level names to C:\Users\Даниил\AppData\Local\Temp\pip-modern-metad
ata-ye6hh5v3\PyInstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-
ye6hh5v3\PyInstaller.egg-info\SOURCES.txt'
adding license file 'COPYING.txt' (matched pattern 'COPYING*')
reading manifest file 'C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-
ye6hh5v3\PyInstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in positio
n 0: invalid continuation byte (sitecustomize.py, line 7)
no previously-included directories found matching 'bootloader\build'
no previously-included directories found matching 'bootloader\.waf-*'
no previously-included directories found matching 'bootloader\.waf3-*'
no previously-included directories found matching 'bootloader\waf-*'
no previously-included directories found matching 'bootloader\waf3-*'
no previously-included directories found matching 'bootloader\_sdks'
no previously-included directories found matching 'bootloader\.vagrant'
warning: no previously-included files found matching 'bootloader\.lock-waf*'

no previously-included directories found matching 'doc\source'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '*.tmp' found under directory
'doc'
warning: no files found matching 'news\_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests\scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.*'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
writing manifest file 'C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-
ye6hh5v3\PyInstaller.egg-info\SOURCES.txt'
creating 'C:\Users\Даниил\AppData\Local\Temp\pip-modern-metadata-ye6hh5v3\PyIn
staller.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3c/c9/c3f9...
e6a824686deba6129884c8cbdf70e750661773b9865ee0/PyInstaller-3.6.tar.gz#sha256=373
0fa80d088f8bb7084d32480eb87cbb4ddb64123363763cf8f2a1378c1c4b7 (from https://pypi
.org/simple/pyinstaller/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3
.3.*, !=3.4.*). Command errored out with exit status 1: 'c:\users\даниил\appdata\l
ocal\programs\python\python38\python.exe' 'c:\users\даниил\appdata\local\programs\
python\python38\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py'
prepare_metadata_for_build_wheel 'C:\Users\3939~1\AppData\Local\Temp\tmp9yafqxzn
' Check the logs for full command output.
  • Вопрос задан
  • 94 просмотра
Решения вопроса 1
@mxrdxfxrrx
flstudio20, py3.x
У вас не кодируется русское имя пользователя в английское при UTF-8
Попробуйте:
В поиске windows введите "Региональные стандарты" > Дополнительно (вторая панель) > Изменить язык системы > и напишите стоит ли у вас галочка на "Бета-версия: Использовать юникод UTF-8... во всем мире"
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@Warlam Автор вопроса
Помогло изменение имени пользователя на английский. Если кому будет нужно способ найдете сами. Вкратце создаем нового пользователя администратора, заходим на него в безопасном режиме, меняем имя в реестре, а затем и папку пользователя на это же имя
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы