PyInstaller cannot be installed using pip

Question:

I was installing pyinstaller soo I can make a exe file.
But pyinstaller did not want to install.
Even with the lates version of pip and python Python310 (Install folder in C:)

Command: pip install pyinstaller

And same with py2exe and auto-py-to-exe.

My pc works normal. I have to convert it to a exe so I can finish my very own programming language Called Binpy (Or binary Python)

The folder contains

__pycache__
 app.cpython-310.pyc
Output
 BinPyInstaller.exe (Installer)
binpy.py (Main)
LICENSE.txt
logo.ico (256x256)
logo.png (512x512)
Norosoft.txt
setup.iss (Inno setup script, Not important and not included on the final build)

MY PC RUNS WINDOWS 11. MAKE SURE THE ANSWER DOSE WORK WITN WINDOWS 11

Error message

ERROR: Command errored out with exit status 1:
     command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Noros\AppData\Local\Temp\pip-install-8iurdv5w\pefile_e6b484235e2a483685550e298cd9fd50\setup.py'"'"'; __file__='"'"'C:\Users\Noros\AppData\Local\Temp\pip-install-8iurdv5w\pefile_e6b484235e2a483685550e298cd9fd50\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersNorosAppDataLocalTemppip-record-7ftz7nv1install-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includepefile'
         cwd: C:UsersNorosAppDataLocalTemppip-install-8iurdv5wpefile_e6b484235e2a483685550e298cd9fd50
    Complete output (14 lines):
    running install
    running build
    running build_py
    creating build
    creating buildlib
    copying pefile.py -> buildlib
    copying peutils.py -> buildlib
    creating buildlibordlookup
    copying ordlookupoleaut32.py -> buildlibordlookup
    copying ordlookupws2_32.py -> buildlibordlookup
    copying ordlookup__init__.py -> buildlibordlookup
    running install_lib
    byte-compiling C:Python310Libsite-packagespefile.py to pefile.cpython-310.pyc
    error: [Errno 13] Permission denied: 'C:\Python310\Lib\site-packages\__pycache__\pefile.cpython-310.pyc.2073893236656'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Noros\AppData\Local\Temp\pip-install-8iurdv5w\pefile_e6b484235e2a483685550e298cd9fd50\setup.py'"'"'; __file__='"'"'C:\Users\Noros\AppData\Local\Temp\pip-install-8iurdv5w\pefile_e6b484235e2a483685550e298cd9fd50\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersNorosAppDataLocalTemppip-record-7ftz7nv1install-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includepefile' Check the logs for full command output.

I hope you have a fix to it!

Asked By: NokoDev

||

Answers:

Thanks to Iah Shelvington it has been fixed.

Answered By: NokoDev
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.