Home > other >  Python package error solution
Python package error solution

Time:10-04

Venv) C: \ Users \ \ Administrator \ PycharmProjects \ untitled> Pyinstaller -f py. Py
INFO: 43 PyInstaller: 3.5
44 the INFO: Python: 3.8.0
44 the INFO: Platform: Windows - 10-10.0.17134 - SP0
INFO: demonstrate C: \ Users \ Administrator \ PycharmProjects \ untitled \ py spec
INFO: 45 UPX is not available.
46 INFO: Extending the PYTHONPATH with paths
[' C: \ \ Users \ \ Administrator \ \ PycharmProjects \ \ untitled ',
'C: \ \ Users \ \ Administrator \ \ PycharmProjects \ \ untitled']
INFO: 46 checking Analysis
103 INFO: checking PYZ
INFO: 103 Building PYZ because PYZ - 00. Toc is non existent
103 INFO: Building PYZ (ZlibArchive) C: \ Users \ \ Administrator \ PycharmProjects \ untitled \ build/py/PYZ - 00.
Pyz
Traceback (the most recent call last) : the File "C: \ Users \ \ Administrator \ \ AppData \ Local \ designed \ Python Python38 \ lib \ runpy py", line 192, in _ru
N_module_as_main return _run_code (code, main_globals, None of the File "C: \ Users \ \ Administrator \ \ AppData \ Local \ designed \ Python Python38 \ lib \ runpy py", line 85, in _run
_code exec (code, run_globals) File "C: \ Users \ \ Administrator \ PycharmProjects \ untitled \ venv \ Scripts \ pyinstaller exe \ __main__ py", li
Ne 9, in & lt; module> The File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ __main__ p
Y ", line 111, in the run run_build (pyi_config spec_file, * * vars (args) File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ __main__ p
Y ", line 63, in run_build PyInstaller. Building. The build_main. Main (pyi_config spec_file, * * kwargs) File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ b
Uild_main. Py ", line 844, the main in the build (specfile, kw. Get (' distpath), kw. Get (' workpath), kw. Get (' clean_build) File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ b
Uild_main. Py ", line 791, build in the exec (code, spec_namespace) File "C: \ Users \ Administrator \ PycharmProjects \ untitled \ py spec", line 18, in & lt; module> Pyz=pyz (Amy polumbo ure, a.z ipped_data, File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ a
PI. Py, line 98, "__init__ in self. __postinit__ () the File" c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ d
Atastruct. Py, line 158, "in __postinit__ self. Assemble () the File" c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ a
PI. Py ", line 128, assemble in the self. The code_dict={File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ a
PI. Py, line 129, "in & lt; Dictcomp> Key: strip_paths_in_code (code) File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ u
Tils. Py, line 652, "in strip_paths_in_code consts=the tuple (File" c: \ users \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ u
Tils. Py, line 653, "in & lt; Genexpr> Strip_paths_in_code (const_co new_filename) File "c: \ users \ \ administrator \ pycharmprojects \ untitled \ venv \ lib \ site - packages \ PyInstaller \ building \ u
Tils. Py, line 660, "in strip_paths_in_code return code_func (Co. co_argcount, Co. co_kwonlyargcount, Co. co_nlocals, Co. co_stacksize,
TypeError: an integer is required (got type bytes)

(venv) C: \ Users \ \ Administrator \ PycharmProjects \ untitled> . Co_argcount Co. co_kwonlyargcount, Co. co_nloc
Als, Co. co_stacksize,
'co_argcount' not internal or external command, nor can run the program
Or a batch file,

(venv) C: \ Users \ \ Administrator \ PycharmProjects \ untitled> TypeError: an integer is required (got type by
Tes)
'TypeError:' not internal or external command, nor a runnable program
Or a batch file,

CodePudding user response:


Hello, provide a possible solution:
The solution:
The command line input
PIP install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
To reinstall pyinstaller

CodePudding user response:

Is the best scientific after surfing the Internet, from the installation was successful,
Reason is through PIP install the new version of python installer cannot package exe,
Close test available
  • Related