Answer the question
In order to leave comments, you need to log in
How to solve error when running pyinstaller-script.py?
When compiling:
pyinstaller -F test.py
Cannot open C:\Users\?????\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller-script.py
Traceback (most recent call last):
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38-32\Scripts\pyinsta
ller-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 3251, in <module>
def _initialize_master_working_set():
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 583, in _build_master
ws.require(__requires__)
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Users\Артём\AppData\Local\Programs\Python\Python38\lib\site-packages\
pkg_resources\__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'PyInstaller==3.6' distribution was not
found and is required by the application
# EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.6','console_scripts','pyinstaller'
__requires__ = 'PyInstaller==3.6'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('PyInstaller==3.6', 'console_scripts', 'pyinstaller')()
)
from pkg_resources import load_entry_point
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Answer the question
In order to leave comments, you need to log in
Most likely the problem is due to the Cyrillic alphabet in the path to pyinstaller-script.py
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question